Add tab colors and drawables to ContactsCommon.

Bug: 14108639
Change-Id: Id188f56ad61ab8f2dc3c8185b458fb58b5a43b47
diff --git a/res-common/drawable/tab_selected.xml b/res-common/drawable/tab_selected.xml
new file mode 100644
index 0000000..78f1eda
--- /dev/null
+++ b/res-common/drawable/tab_selected.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2013 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+    <!-- Tab selected underline -->
+    <item android:drawable="@color/tab_selected_color" />
+    <!-- Tab background -->
+    <item android:drawable="@color/tab_default_color"
+            android:bottom="@dimen/tab_selected_underline_height" />
+</layer-list>
\ No newline at end of file
diff --git a/res-common/drawable/tab_selected_focused.xml b/res-common/drawable/tab_selected_focused.xml
new file mode 100644
index 0000000..591045d
--- /dev/null
+++ b/res-common/drawable/tab_selected_focused.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2013 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+    <!-- Tab selected underline -->
+    <item android:drawable="@color/tab_selected_color" />
+    <!-- Tab background -->
+    <item android:drawable="@color/tab_default_color"
+            android:bottom="@dimen/tab_selected_underline_height" />
+    <item>
+        <shape android:shape="rectangle" >
+            <stroke
+                android:width="4dp"
+                android:color="#44ff0000" />
+        </shape>
+    </item>
+</layer-list>
\ No newline at end of file
diff --git a/res-common/drawable/tab_unselected_focused.xml b/res-common/drawable/tab_unselected_focused.xml
new file mode 100644
index 0000000..c32e2c5
--- /dev/null
+++ b/res-common/drawable/tab_unselected_focused.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2013 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <!-- Tab background -->
+    <item android:drawable="@color/tab_default_color" />
+    <item>
+        <shape android:shape="rectangle" >
+            <stroke
+                android:width="4dp"
+                android:color="#44ff0000" />
+        </shape>
+    </item>
+</layer-list>
\ No newline at end of file
diff --git a/res-common/values/colors.xml b/res-common/values/colors.xml
index d6adaa9..7cf9781 100644
--- a/res-common/values/colors.xml
+++ b/res-common/values/colors.xml
@@ -68,4 +68,12 @@
     <color name="letter_tile_default_color">#cccccc</color>
 
     <color name="letter_tile_font_color">#ffffff</color>
+
+
+    <!-- Background color for tabs in an unpressed state. -->
+    <color name="tab_default_color">#00afcc</color>
+    <!-- Background color for tabs in a pressed state. -->
+    <color name="tab_pressed_color">#008698</color>
+    <!-- Color of the selection indicator for a tab which is selected. -->
+    <color name="tab_selected_color">#008698</color>
 </resources>
diff --git a/res-common/values/dimens.xml b/res-common/values/dimens.xml
index d553d87..4d892df 100644
--- a/res-common/values/dimens.xml
+++ b/res-common/values/dimens.xml
@@ -99,4 +99,7 @@
 
     <!-- Width of a contact list item section header. -->
     <dimen name="contact_list_section_header_width">40dp</dimen>
+
+    <!-- Height of the selection indicator of a tab. -->
+    <dimen name="tab_selected_underline_height">3dp</dimen>
 </resources>