summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-07 18:40:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-10-07 18:40:55 +0000
commit34f5df7389ab7966ab974147ddcd6891598b6e43 (patch)
tree9c69206b51dae1dc326302fd47455e464e95a324 /res/values
parenta0a08083e2f21ec45ef40064687b550b9af6a388 (diff)
parent71b91f987e1de849ee4d513241bd4a378f75810e (diff)
downloadandroid_packages_apps_Dialer-34f5df7389ab7966ab974147ddcd6891598b6e43.tar.gz
android_packages_apps_Dialer-34f5df7389ab7966ab974147ddcd6891598b6e43.tar.bz2
android_packages_apps_Dialer-34f5df7389ab7966ab974147ddcd6891598b6e43.zip
Merge "Settings UI elements for importing VM to block list." into ub-contactsdialer-a-dev
Diffstat (limited to 'res/values')
-rw-r--r--res/values/colors.xml6
-rw-r--r--res/values/dimens.xml4
-rw-r--r--res/values/strings.xml15
-rw-r--r--res/values/styles.xml13
4 files changed, 38 insertions, 0 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml
index f0765bab9..55970d9e4 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -22,6 +22,9 @@
<color name="dialer_red_highlight_color">#ff1744</color>
<color name="dialer_green_highlight_color">#00c853</color>
+ <color name="dialer_button_text_color">#fff</color>
+ <color name="dialer_flat_button_text_color">@color/dialer_theme_color</color>
+
<!-- Color for the setting text. -->
<color name="setting_primary_color">@color/dialtacts_primary_text_color</color>
<!-- Color for the setting description text. -->
@@ -105,6 +108,7 @@
<color name="floating_action_button_touch_tint">#80ffffff</color>
<color name="call_log_action_divider">#eeeeee</color>
+ <color name="divider_line_color">#c7c7c7</color>
<!-- Colors for blocked numbers list -->
<color name="blocked_number_primary_text_color">@color/dialtacts_primary_text_color</color>
@@ -113,9 +117,11 @@
<color name="blocked_number_background">#E0E0E0</color>
<color name="blocked_number_accent_color">#42A5F5</color>
<color name="blocked_number_block_color">#F44336</color>
+ <color name="blocked_number_header_color">@color/dialer_theme_color</color>
<!-- Colors for onboarding flow -->
<color name="onboarding_primary_text_color">#ffffff</color>
<color name="onboarding_default_dialer_screen_background_color">#e06055</color>
<color name="onboarding_permissions_screen_background_color">#689f38</color>
+
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 093e80f0c..38e4d0e6e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -15,6 +15,8 @@
~ limitations under the License
-->
<resources>
+ <dimen name="button_horizontal_padding">16dp</dimen>
+
<!--
Drag to remove view (in dp because it is used in conjunction with a statically
sized icon
@@ -147,6 +149,7 @@
<dimen name="voicemail_playback_top_padding">12dp</dimen>
<!-- Size of entries in blocked numbers list -->
+ <dimen name="blocked_number_container_padding">16dp</dimen>
<dimen name="blocked_number_horizontal_margin">16dp</dimen>
<dimen name="blocked_number_top_margin">16dp</dimen>
<dimen name="blocked_number_bottom_margin">16dp</dimen>
@@ -154,6 +157,7 @@
<dimen name="blocked_number_secondary_text_size">12sp</dimen>
<dimen name="blocked_number_delete_icon_size">32dp</dimen>
<dimen name="blocked_number_search_text_size">14sp</dimen>
+ <dimen name="blocked_number_settings_description_text_size">16sp</dimen>
<dimen name="call_type_icon_size">12dp</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index c52b18be9..3f4b9e2a6 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -833,6 +833,21 @@
<!-- Label for the blocked calls settings section [CHAR LIMIT=30] -->
<string name="blocked_calls_settings_label">Spam and blocked calls</string>
+ <!-- Text informing the user they have previously marked contacts to be sent to voicemail.
+ This will be followed by two buttons, 1) to view who is marked to be sent to voicemail
+ and 2) importing these settings to Dialer's block list. [CHAR LIMIT=NONE] -->
+ <string name="blocked_call_settings_import_description">
+ You previously marked some callers to be automatically sent to voicemail via other apps.
+ </string>
+
+ <!-- Labe for button to view numbers of contacts previous marked to be sent to voicemail.
+ [CHAR_LIMIT=20] -->
+ <string name="blocked_call_settings_view_numbers_button">View Numbers</string>
+
+ <!-- Label for button to import settings for sending contacts to voicemail into Dialer's block
+ list. [CHAR_LIMIT=20] -->
+ <string name="blocked_call_settings_import_button">Import</string>
+
<!-- String describing the delete icon on a blocked number list item.
When tapped, it will show a dialog confirming the unblocking of the number.
[CHAR LIMIT=NONE]-->
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 86c3ad47d..005fd4587 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -83,6 +83,12 @@
<item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
<item name="dialpad_key_button_touch_tint">@color/dialer_dialpad_touch_tint</item>
<item name="android:colorControlActivated">@color/dialer_theme_color</item>
+ <item name="android:colorButtonNormal">@color/dialer_theme_color</item>
+ <item name="android:textAppearanceButton">@style/DialerButtonTextStyle</item>
+ </style>
+
+ <style name="DialerButtonTextStyle" parent="@android:style/TextAppearance.Material.Widget.Button">
+ <item name="android:textColor">#fff</item>
</style>
<!-- Action bar overflow menu icon. -->
@@ -278,4 +284,11 @@
<item name="android:background">@drawable/oval_ripple</item>
<item name="android:padding">8dp</item>
</style>
+
+ <style name="DialerFlatButtonStyle" parent="@android:style/Widget.Material.Button">
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ <item name="android:paddingEnd">@dimen/button_horizontal_padding</item>
+ <item name="android:paddingStart">@dimen/button_horizontal_padding</item>
+ <item name="android:textColor">@color/dialer_flat_button_text_color</item>
+ </style>
</resources>