diff options
author | Winson Chung <winsonc@google.com> | 2011-01-26 13:34:01 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-01-26 13:34:51 -0800 |
commit | 153998cc3a84b1d6a125522966b6e19e74b7fd52 (patch) | |
tree | c63b314170c9ac2aa4857bb0d39817dea7d36931 /res | |
parent | 8d60f408802624b35f61d5e068bd13beede7b345 (diff) | |
download | packages_apps_trebuchet-153998cc3a84b1d6a125522966b6e19e74b7fd52.zip packages_apps_trebuchet-153998cc3a84b1d6a125522966b6e19e74b7fd52.tar.gz packages_apps_trebuchet-153998cc3a84b1d6a125522966b6e19e74b7fd52.tar.bz2 |
Making padding a little smaller in portrait to accommodate larger spanish tab text. (3393521)
Change-Id: I723f5b31f40a6b25ec91b576eb4dc60f77096dd7
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-xlarge-port/tab_widget_indicator.xml | 19 | ||||
-rw-r--r-- | res/layout-xlarge/tab_widget_indicator.xml | 18 | ||||
-rw-r--r-- | res/values/styles.xml | 22 |
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 0000000..b113b7b --- /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 1b3f1c0..7794e29 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 7592a15..0c74a6a 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> |