summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/layout-xlarge-port/tab_widget_indicator.xml19
-rw-r--r--res/layout-xlarge/tab_widget_indicator.xml18
-rw-r--r--res/values/styles.xml22
3 files changed, 42 insertions, 17 deletions
diff --git a/res/layout-xlarge-port/tab_widget_indicator.xml b/res/layout-xlarge-port/tab_widget_indicator.xml
new file mode 100644
index 000000000..b113b7b3f
--- /dev/null
+++ b/res/layout-xlarge-port/tab_widget_indicator.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 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.
+-->
+
+<TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/TabIndicator.Portrait" />
diff --git a/res/layout-xlarge/tab_widget_indicator.xml b/res/layout-xlarge/tab_widget_indicator.xml
index 1b3f1c074..7794e2903 100644
--- a/res/layout-xlarge/tab_widget_indicator.xml
+++ b/res/layout-xlarge/tab_widget_indicator.xml
@@ -16,20 +16,4 @@
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
-
- android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center"
- android:paddingLeft="40dp"
- android:paddingRight="40dp"
- android:paddingTop="15dp"
- android:paddingBottom="20dp"
-
- android:textColor="@color/tab_widget_indicator_color"
- android:background="@drawable/tab_widget_indicator_selector"
- android:textSize="20sp"
- android:shadowColor="#393939"
- android:shadowDx="0.0"
- android:shadowDy="1.0"
- android:shadowRadius="1.0" />
+ style="@style/TabIndicator" />
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 7592a1597..0c74a6a2e 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -68,6 +68,28 @@
<item name="android:layout_marginRight">10dip</item>
</style>
+ <style name="TabIndicator">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:gravity">center</item>
+ <item name="android:paddingLeft">40dp</item>
+ <item name="android:paddingRight">40dp</item>
+ <item name="android:paddingTop">15dp</item>
+ <item name="android:paddingBottom">20dp</item>
+ <item name="android:textColor">@color/tab_widget_indicator_color</item>
+ <item name="android:background">@drawable/tab_widget_indicator_selector</item>
+ <item name="android:textSize">20sp</item>
+ <item name="android:shadowColor">#393939</item>
+ <item name="android:shadowDx">0.0</item>
+ <item name="android:shadowDy">1.0</item>
+ <item name="android:shadowRadius">1.0</item>
+ </style>
+
+ <style name="TabIndicator.Portrait">
+ <item name="android:paddingLeft">20dp</item>
+ <item name="android:paddingRight">20dp</item>
+ </style>
+
<style name="SearchButton" parent="@android:style/Widget.Button.Small">
<item name="android:paddingTop">7dip</item>
<item name="android:paddingBottom">9dip</item>