Permalink
Browse files

Add support for tab indicator and launcher theming

  • Loading branch information...
ecarrigan committed Nov 19, 2010
1 parent 6085d98 commit 450716525bc3bdd63bcb2d8a7c657f8228994b60
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2007, 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:state_pressed="true" android:drawable="@drawable/pressed_application_background" />
+ <item android:state_window_focused="true" android:state_focused="true" android:drawable="@drawable/focused_application_background" />
+ <item android:state_window_focused="false" android:state_focused="true" android:drawable="@android:color/transparent" />
+</selector>
View
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <attr name="android_tabIndicatorBackground" format="reference" />
+
+ <!-- Launcher attributes -->
+ <attr name="com_android_launcher_workspaceIconBackground" format="reference" />
+
+</resources>
View
@@ -171,12 +171,7 @@
<item name="android:progressDrawable">@drawable/progress_horizontal</item>
</style>
- <!--style name="Widget.TabIndicator" parent="android:style/Widget.TabIndicator">
- <item name="android:background">@drawable/tab_indicator</item>
- </style-->
-
<style name="Widget.TabWidget" parent="android:style/Widget.TabWidget">
- <item name="android:background">@color/background_dark</item>
<item name="android:tabStripLeft">@drawable/tab_bottom_left</item>
<item name="android:tabStripRight">@drawable/tab_bottom_right</item>
</style>
View
@@ -77,6 +77,11 @@
<item name="android:quickContactBadgeStyleSmallWindowSmall">@style/Widget.QuickContactBadgeSmall.WindowSmall</item>
<item name="android:quickContactBadgeStyleSmallWindowMedium">@style/Widget.QuickContactBadgeSmall.WindowMedium</item>
<item name="android:quickContactBadgeStyleSmallWindowLarge">@style/Widget.QuickContactBadgeSmall.WindowLarge</item>
+
+ <item name="android_tabIndicatorBackground">@drawable/tab_indicator</item>
+
+ <!-- Launcher styles -->
+ <item name="com_android_launcher_workspaceIconBackground">@drawable/shortcut_selector</item>
</style>
<style name="Theme.Light" parent="@android:style/Theme.Light">
@@ -98,4 +103,6 @@
<item name="android:listViewStyle">@style/Widget.ListView.White</item>
<item name="android:listDivider">@drawable/divider_horizontal_bright</item>
</style>
+
+
</resources>

0 comments on commit 4507165

Please sign in to comment.