Added dialer action bar styling to common
Change-Id: I419760fa99dc9cf390f882fc28993e7a987a093c
diff --git a/res-common/color/tab_text_color.xml b/res-common/color/tab_text_color.xml
new file mode 100644
index 0000000..5ef1fe3
--- /dev/null
+++ b/res-common/color/tab_text_color.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2014 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
+ -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:color="@color/actionbar_text_color" android:state_selected="true"/>
+ <item android:color="@color/actionbar_unselected_text_color" />
+</selector>
\ No newline at end of file
diff --git a/res-common/drawable-hdpi/ic_menu_overflow_dk.png b/res-common/drawable-hdpi/ic_menu_overflow_dk.png
new file mode 100644
index 0000000..e9b0523
--- /dev/null
+++ b/res-common/drawable-hdpi/ic_menu_overflow_dk.png
Binary files differ
diff --git a/res-common/drawable-hdpi/ic_menu_overflow_lt.png b/res-common/drawable-hdpi/ic_menu_overflow_lt.png
new file mode 100644
index 0000000..57db353
--- /dev/null
+++ b/res-common/drawable-hdpi/ic_menu_overflow_lt.png
Binary files differ
diff --git a/res-common/drawable-mdpi/ic_menu_overflow_dk.png b/res-common/drawable-mdpi/ic_menu_overflow_dk.png
new file mode 100644
index 0000000..67f281d
--- /dev/null
+++ b/res-common/drawable-mdpi/ic_menu_overflow_dk.png
Binary files differ
diff --git a/res-common/drawable-mdpi/ic_menu_overflow_lt.png b/res-common/drawable-mdpi/ic_menu_overflow_lt.png
new file mode 100644
index 0000000..c699374
--- /dev/null
+++ b/res-common/drawable-mdpi/ic_menu_overflow_lt.png
Binary files differ
diff --git a/res-common/drawable-xhdpi/ic_menu_overflow_dk.png b/res-common/drawable-xhdpi/ic_menu_overflow_dk.png
new file mode 100644
index 0000000..ec50c22
--- /dev/null
+++ b/res-common/drawable-xhdpi/ic_menu_overflow_dk.png
Binary files differ
diff --git a/res-common/drawable-xhdpi/ic_menu_overflow_lt.png b/res-common/drawable-xhdpi/ic_menu_overflow_lt.png
new file mode 100644
index 0000000..e538b98
--- /dev/null
+++ b/res-common/drawable-xhdpi/ic_menu_overflow_lt.png
Binary files differ
diff --git a/res-common/drawable-xxhdpi/ic_menu_overflow_dk.png b/res-common/drawable-xxhdpi/ic_menu_overflow_dk.png
new file mode 100644
index 0000000..004f26b
--- /dev/null
+++ b/res-common/drawable-xxhdpi/ic_menu_overflow_dk.png
Binary files differ
diff --git a/res-common/drawable-xxhdpi/ic_menu_overflow_lt.png b/res-common/drawable-xxhdpi/ic_menu_overflow_lt.png
new file mode 100644
index 0000000..7f3f733
--- /dev/null
+++ b/res-common/drawable-xxhdpi/ic_menu_overflow_lt.png
Binary files differ
diff --git a/res-common/drawable/action_bar_tab.xml b/res-common/drawable/action_bar_tab.xml
new file mode 100644
index 0000000..8a3ea7a
--- /dev/null
+++ b/res-common/drawable/action_bar_tab.xml
@@ -0,0 +1,38 @@
+<?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.
+-->
+<touch-feedback xmlns:android="http://schemas.android.com/apk/res/android"
+ android:tint="@color/tab_pressed_color">
+ <item>
+ <selector>
+ <item android:drawable="@drawable/tab_selected"
+ android:state_focused="false"
+ android:state_pressed="false"
+ android:state_selected="true" />
+ <item android:drawable="@drawable/tab_selected_focused"
+ android:state_focused="true"
+ android:state_pressed="false"
+ android:state_selected="true" />
+ <item android:drawable="@drawable/tab_unselected_focused"
+ android:state_focused="true"
+ android:state_pressed="false"
+ android:state_selected="false" />
+ <item android:drawable="@drawable/tab_selected"
+ android:state_selected="true" />
+ <item android:drawable="@color/tab_default_color" />
+ </selector>
+ </item>
+</touch-feedback>
\ No newline at end of file
diff --git a/res-common/values/colors.xml b/res-common/values/colors.xml
index 87c31f5..f46f90e 100644
--- a/res-common/values/colors.xml
+++ b/res-common/values/colors.xml
@@ -79,6 +79,10 @@
actionbar_background_color. -->
<color name="actionbar_background_color">#0fc6dc</color>
+ <!-- Color of action bar text. Ensure this stays in sync with packages/Telephony
+ phone_settings_actionbar_text_color-->
+ <color name="actionbar_text_color">#ffffff</color>
+ <color name="actionbar_unselected_text_color">#a6ffffff</color>
<!-- Colors for the dialpad -->
<color name="background_dialpad">#ffffff</color>
diff --git a/res-common/values/dimens.xml b/res-common/values/dimens.xml
index ae39f59..8554228 100644
--- a/res-common/values/dimens.xml
+++ b/res-common/values/dimens.xml
@@ -101,6 +101,8 @@
<!-- Height of the selection indicator of a tab. -->
<dimen name="tab_selected_underline_height">3dp</dimen>
+ <!-- Size of text in tabs. -->
+ <dimen name="tab_text_size">14sp</dimen>
<!-- Text dimensions for dialpad keys -->
<dimen name="dialpad_key_numbers_size">34dp</dimen>
diff --git a/res-common/values/strings.xml b/res-common/values/strings.xml
index db7cbce..0346d4e 100644
--- a/res-common/values/strings.xml
+++ b/res-common/values/strings.xml
@@ -744,6 +744,10 @@
-->
<string name="description_voicemail_button">voicemail</string>
+ <!-- The font-family to use for tab text.
+ Do not translate. -->
+ <string name="tab_font_family">sans-serif</string>
+
<!-- The digit to be displayed on the 0 key of the dialpad [CHAR LIMIT=1]-->
<string name="dialpad_0_number">0</string>
<!-- The digit to be displayed on the 1 key of the dialpad [CHAR LIMIT=1]-->