Change cursor color and secondary color in dialer search
Update secondary text color (phone number, address, etc.) in search
results and change cursor color to dialer primary color.
Bug: 16656480
Change-Id: I04e59c4d0adee9082db506ba0726b6ba4f982a21
diff --git a/res-common/drawable/searchedittext_custom_cursor.xml b/res-common/drawable/searchedittext_custom_cursor.xml
new file mode 100644
index 0000000..a03939f
--- /dev/null
+++ b/res-common/drawable/searchedittext_custom_cursor.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2014 Google Inc. All Rights Reserved. -->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android" >
+ <size android:width="2dp" />
+ <solid android:color="@color/dialtacts_theme_color" />
+</shape>
\ No newline at end of file
diff --git a/res-common/layout/search_bar_expanded.xml b/res-common/layout/search_bar_expanded.xml
index 6c10cb4..caa4715 100644
--- a/res-common/layout/search_bar_expanded.xml
+++ b/res-common/layout/search_bar_expanded.xml
@@ -42,6 +42,7 @@
android:fontFamily="@string/search_font_family"
android:textColor="@color/searchbox_text_color"
android:textColorHint="@color/searchbox_hint_text_color"
+ android:textCursorDrawable="@drawable/searchedittext_custom_cursor"
android:background="@null"
android:inputType="textFilter"
android:singleLine="true"
diff --git a/res-common/values/colors.xml b/res-common/values/colors.xml
index 28ab871..a39d17a 100644
--- a/res-common/values/colors.xml
+++ b/res-common/values/colors.xml
@@ -41,11 +41,14 @@
<!-- Color of the theme of the People app -->
<color name="people_app_theme_color">#363636</color>
+ <!-- Color of the theme of the Dialer app -->
+ <color name="dialtacts_theme_color">#0288d1</color>
+
<!-- Color of image view placeholder. -->
<color name="image_placeholder">#DDDDDD</color>
<!-- Secondary text color in the Phone app -->
- <color name="dialtacts_secondary_text_color">#888888</color>
+ <color name="dialtacts_secondary_text_color">#737373</color>
<!-- Color of the semi-transparent shadow box on contact tiles -->
<color name="contact_tile_shadow_box_color">#7F000000</color>
diff --git a/res-common/values/styles.xml b/res-common/values/styles.xml
index af8b37d..54d5f8c 100644
--- a/res-common/values/styles.xml
+++ b/res-common/values/styles.xml
@@ -62,7 +62,7 @@
<style name="TextAppearanceSmall" parent="@android:style/TextAppearance.Small">
<item name="android:textSize">14sp</item>
- <item name="android:textColor">#888888</item>
+ <item name="android:textColor">#737373</item>
</style>
<style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView">