Set colorControlActivated=colorPrimary

This affects the color of all controls once activated. For example: checked
checkboxes, selected radio buttons and focused EditTexts.

The new activited control color doesn't look good inside the
ContactSelectionActivity's SearchView. Therefore, I setup a custom theme for
this view.

Bug: 17139811
Change-Id: I7fe6969bbb2a6c3c0feb40e4caf45c81edf0c14d
diff --git a/res/layout/custom_action_bar.xml b/res/layout/custom_action_bar.xml
index af104fe..5b930ea 100644
--- a/res/layout/custom_action_bar.xml
+++ b/res/layout/custom_action_bar.xml
@@ -33,6 +33,7 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:iconifiedByDefault="false"
-        android:inputType="textFilter" />
+        android:inputType="textFilter"
+        android:theme="@style/ContactPickerSearchTheme" />
 
 </FrameLayout>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 8ff6469..fc2df8c 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -66,6 +66,7 @@
         <item name="android:windowBackground">@color/background_primary</item>
         <item name="android:colorPrimaryDark">@color/primary_color_dark</item>
         <item name="android:colorPrimary">@color/primary_color</item>
+        <item name="android:colorControlActivated">@color/primary_color</item>
         <item name="list_item_height">?android:attr/listPreferredItemHeight</item>
         <item name="activated_background">@drawable/list_item_activated_background</item>
         <item name="section_header_background">@drawable/list_title_holo</item>
@@ -128,6 +129,13 @@
         <item name="android:displayOptions"></item>
     </style>
 
+    <style name="ContactPickerSearchTheme" parent="@style/PeopleTheme">
+        <item name="android:textColorPrimary">@android:color/white</item>
+        <item name="android:textColorHint">?android:textColorHintInverse</item>
+        <item name="android:colorControlActivated">?android:textColorHintInverse</item>
+        <item name="android:colorControlNormal">@android:color/white</item>
+    </style>
+
     <!-- Text in the action bar at the top of the screen -->
     <style name="ContactsActionBarTitleText"
            parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">