Initial commit of all new dialer activities, layouts and styles
As far as possible, this change does not modify any behavior/look
of the existing dialer. All modifications to classes/layouts/style attributes
that would affect functionality of the old dialer are instead done in
separate new files.
Added new versions of all activities, fragments, layouts, menus
and resources that have been rewritten or modified.
The activities do not have intent filters yet in order to not interfere
with the existing dialer.
Added some new values in colors/styles/dimens for the newly added
layouts.
Added NewCallLogActivity to separate the CallLogFragment from
DialtactsActivity. All call log and voicemail entries are now presented
in a separate (New)CallLogActivity.
IntentProvider.getCallDetailIntent now takes a cursor instead of an
adapter for more flexibility.
Add OnListFragmentScrolledListener interface for DialtactsActivity
to receive callback when one of its children fragment is scrolled.
Added slide in and slide out animations for DialpadFragment.
Add slide up and hide animations for search view
All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment.
Added call log adapter into NewPhoneFavoriteMergedAdapter.
Rewrote layout of DialpadFragment to show up as a fragment partially overlaying
the screen.
Removed some unused code in DialpadFragment (smart dialing, menu handling)
Add fragments and adapters for SmartDial.
- Update Dialer database to support highlight masking and record contact
data Uri, as well as photo uri
- Add a fragment and adapter for smart dialing
- Add SmartDialCursorLoader to load SmartDial results.
- Typing in the dialpad now returns smart dialing results instead of regular
search results
QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use
light theme instead of the the default dark theme.
Removed all redundant call log filter and contacts to display filter code
Moved Dialer specific UI list-related classes to the Dialer package
Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 1aa217f..672c970 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -17,7 +17,9 @@
<resources>
<!-- Secondary text color in the Phone app -->
+ <color name="dialtacts_primary_text_color">#111111</color>
<color name="dialtacts_secondary_text_color">#888888</color>
+ <color name="dialpad_text_color">#ffffff</color>
<color name="smartdial_name_primary_text_color">#0099cc</color>
<color name="smartdial_name_highlighted_text_color">#39c9ff</color>
<color name="smartdial_number_primary_text_color">#bbbbbb</color>
@@ -40,4 +42,17 @@
<!-- Standard color for selected items. -->
<color name="item_selected">#660099cc</color>
+
+ <!-- Background color of new dialer activity -->
+ <color name="background_dial_holo_light">#ffffff</color>
+
+ <!-- Background color of new dialpad -->
+ <color name="background_dialpad">#ee020709</color>
+
+ <!-- Primary color of dialpad text, including the call button -->
+ <color name="dialpad_primary_text_color">#0099cc</color>
+ <!-- Secondary color of dialpad text (mainly used for the letters corresponding to each digit
+ -->
+ <color name="dialpad_secondary_text_color">#888888</color>
+
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 5d7412b..474f572 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -45,6 +45,7 @@
LinearLayout (dialpad_fragment.xml), configuring dialpad screen's vertical
ratio. -->
<integer name="dialpad_layout_weight_digits">20</integer>
+ <integer name="dialpad_layout_weight_digits_new">15</integer>
<integer name="dialpad_layout_weight_dialpad">65</integer>
<integer name="dialpad_layout_weight_additional_buttons">15</integer>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9bf0ee8..9be7481 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -511,4 +511,31 @@
<!-- Message displayed when there is no application available to handle the add contact menu option. [CHAR LIMIT=NONE] -->
<string name="add_contact_not_available">Re-enable the People application to use this feature.</string>
+ <!-- Hint displayed in dialer search box when there is no query that is currently typed.
+ [CHAR LIMIT=25] -->
+ <string name="dialer_hint_find_contact">Type a name or phone</string>
+
+ <!-- Title for the call log tab containing the list of all voicemails and calls
+ [CHAR LIMIT=10] -->
+ <string name="call_log_all_title">All</string>
+
+ <!-- Title for the call log tab containing the list of all missed calls only
+ [CHAR LIMIT=10] -->
+ <string name="call_log_missed_title">Missed</string>
+
+ <!-- Title for the call log tab containing the list of all voicemails only
+ [CHAR LIMIT=10] -->
+ <string name="call_log_voicemail_title">Voicemail</string>
+
+ <!-- Text displayed when the list of missed calls is empty -->
+ <string name="recentMissed_empty">No recent missed calls.</string>
+
+ <!-- Text displayed when the list of voicemails is empty -->
+ <string name="recentVoicemails_empty">No recent voicemails.</string>
+
+ <!-- Menu option to enable all contacts to be displayed -->
+ <string name="show_all_contacts">Show all contacts</string>
+
+ <!-- Menu option to show favorite contacts only -->
+ <string name="show_favorites_only">Show favorites only</string>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 099bfd5..cb36090 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -65,6 +65,61 @@
<item name="favorites_padding_bottom">?android:attr/actionBarSize</item>
</style>
+ <style name="NewDialtactsTheme"
+ parent="android:Theme.Holo.Light">
+ <item name="android:textColorPrimary">@color/dialtacts_primary_text_color</item>
+ <item name="android:textColorSecondary">@color/dialtacts_secondary_text_color</item>
+ <item name="android:windowActionBarOverlay">true</item>
+ <item name="android:actionBarStyle">@style/DialtactsActionBarStyleNew</item>
+ <item name="android:windowContentOverlay">@null</item>
+ <item name="android:windowBackground">@color/background_dial_holo_light</item>
+ <item name="android:listViewStyle">@style/ListViewStyle</item>
+ <item name="activated_background">@drawable/list_item_activated_background</item>
+ <item name="section_header_background">@drawable/list_title_holo</item>
+ <item name="list_section_header_height">32dip</item>
+ <item name="list_item_divider">?android:attr/listDivider</item>
+ <item name="list_item_padding_top">0dip</item>
+ <item name="list_item_padding_right">0dip</item>
+ <item name="list_item_padding_bottom">0dip</item>
+ <item name="list_item_padding_left">0dip</item>
+ <item name="list_item_gap_between_image_and_text">8dip</item>
+ <item name="list_item_gap_between_label_and_data">5dip</item>
+ <item name="list_item_presence_icon_margin">4dip</item>
+ <item name="list_item_presence_icon_size">16dip</item>
+ <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
+ <item name="list_item_profile_photo_size">70dip</item>
+ <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
+ <item name="list_item_header_text_indent">8dip</item>
+ <item name="list_item_header_text_color">@color/people_app_theme_color</item>
+ <item name="list_item_header_text_size">14sp</item>
+ <item name="list_item_header_height">24dip</item>
+ <item name="list_item_header_underline_height">1dip</item>
+ <item name="list_item_header_underline_color">@color/people_app_theme_color</item>
+ <item name="list_item_data_width_weight">5</item>
+ <item name="list_item_label_width_weight">3</item>
+ <item name="contact_browser_list_padding_left">16dip</item>
+ <item name="contact_browser_list_padding_right">0dip</item>
+ <item name="contact_browser_background">@android:color/transparent</item>
+ <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
+ <!-- CallLog -->
+ <item name="call_log_primary_text_color">#111111</item>
+ <item name="call_log_primary_background_color">#000000</item>
+ <item name="call_log_secondary_text_color">#555555</item>
+ <item name="call_log_secondary_background_color">#333333</item>
+ <item name="call_log_header_color">#33b5e5</item>
+ <!-- VoicemailStatus -->
+ <item name="call_log_voicemail_status_height">48dip</item>
+ <item name="call_log_voicemail_status_background_color">#262626</item>
+ <item name="call_log_voicemail_status_text_color">#888888</item>
+ <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
+ <!-- Favorites -->
+ <item name="favorites_padding_bottom">?android:attr/actionBarSize</item>
+ </style>
+
+ <style name="DialpadTheme" parent="DialtactsTheme">
+ <item name="android:textColorPrimary">#FFFFFF</item>
+ </style>
+
<style name="CallDetailActivityTheme" parent="android:Theme.Holo">
<item name="android:windowBackground">@android:color/black</item>
<item name="android:gravity">top</item>
@@ -110,6 +165,11 @@
<item name="android:background">#66000000</item>
</style>
+ <style name="DialtactsActionBarStyleNew" parent="android:Widget.Holo.ActionBar">
+ <item name="android:backgroundSplit">@null</item>
+ <item name="android:displayOptions"></item>
+ </style>
+
<style name="DialtactsActionBarStyle" parent="android:Widget.Holo.ActionBar">
<item name="android:backgroundSplit">@null</item>
<item name="android:backgroundStacked">@drawable/ab_stacked_opaque_dark_holo</item>