diff options
author | Yorke Lee <yorkelee@google.com> | 2014-07-14 19:13:16 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-07-15 10:00:32 -0700 |
commit | af6f195af0bb200d1bb06ad11dac476e8dff0073 (patch) | |
tree | 916ce243afb2ab86524ae16491e5d451fc4a1fc5 /res/values | |
parent | 434dbcc2f581619f79a691e1a39c5e69003a9d16 (diff) |
Make ContactPreferences use SharedPreferences instead of System settings (5/5)
* Move constants that originally lived in the framework into ContactsCommon
* Use SharedPreferences instead of System settings to persist preferences
* Use a SharedPreferenceListener to monitor changes instead of a content observer
on system settings
* Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that
it can be used by Dialer
* Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity
extend it
Bug: 16153186
Change-Id: I27befcc3b038038830f72092b55a6fc8a6f85674
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/colors.xml | 6 | ||||
-rw-r--r-- | res/values/strings.xml | 12 | ||||
-rw-r--r-- | res/values/styles.xml | 9 |
3 files changed, 25 insertions, 2 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml index 6624c2d80..cbf737cb2 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -21,6 +21,12 @@ <color name="dialtacts_secondary_text_color">#888888</color> <color name="dialer_accent_color">#eeff41</color> + <!-- Color for the setting text. --> + <color name="setting_primary_color">#4d4c4c</color> + <!-- Color for the setting description text. --> + <color name="setting_secondary_color">#989898</color> + <color name="setting_background_color">#ffffff</color> + <!-- Color of the text describing an unconsumed missed call. --> <color name="call_log_missed_call_highlight_color">#FF0000</color> diff --git a/res/values/strings.xml b/res/values/strings.xml index e51aff714..29b965163 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -329,8 +329,8 @@ <!-- Menu item to select account used to make phone calls [CHAR LIMIT=30] --> <string name="menu_select_account">Select Account</string> - <!-- Menu item label for call settings [CHAR LIMIT=30] --> - <string name="call_settings">Settings</string> + <!-- Label for the dialer app setting page [CHAR LIMIT=30]--> + <string name="dialer_settings_label">Settings</string> <!-- Menu item to create a new contact [CHAR LIMIT=30] --> <string name="menu_newContact">New contact</string> @@ -750,4 +750,12 @@ <!-- Delimeter used between each item in a textual list; for example "Alpha, Beta". [CHAR LIMIT=3] --> <string name="list_delimeter">", "</string> + + <!-- Dialer settings related strings--> + + <!-- Label for the call settings section [CHAR LIMIT=30]--> + <string name="call_settings_label">Call Settings</string> + + <!-- Label for the call settings section description [CHAR LIMIT=80]--> + <string name="call_settings_description">Ringtones, voicemail settings, VoIP calling, etc</string> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 0140db8e1..a7c1ec138 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -150,4 +150,13 @@ <item name="android:paddingLeft">@dimen/dismiss_button_padding_start</item> <item name="android:paddingRight">@dimen/dismiss_button_padding_end</item> </style> + + <!-- Style applied to the "Settings" screen. Keep in sync with SettingsLight in Telephony. --> + <style name="SettingsStyle" parent="DialtactsThemeWithoutActionBarOverlay"> + <!-- Setting text. --> + <item name="android:textColorSecondary">@color/setting_primary_color</item> + <!-- Setting description. --> + <item name="android:textColorTertiary">@color/setting_secondary_color</item> + <item name="android:windowBackground">@color/setting_background_color</item> + </style> </resources> |