diff options
author | Winson Chung <winsonc@google.com> | 2011-11-28 13:50:35 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-11-28 13:51:05 -0800 |
commit | 19cd4b9b5b04c894493d440cda59dca543a566dd (patch) | |
tree | 6e51cf1f6727d77849332f6d9ae49b50acd6a0d7 /res | |
parent | 8171d8ce48765cbc9e6ed96ac3dc173a8969616d (diff) | |
download | packages_apps_trebuchet-19cd4b9b5b04c894493d440cda59dca543a566dd.zip packages_apps_trebuchet-19cd4b9b5b04c894493d440cda59dca543a566dd.tar.gz packages_apps_trebuchet-19cd4b9b5b04c894493d440cda59dca543a566dd.tar.bz2 |
Forcing tabs to be single line and width bound (Bug 5646142)
Change-Id: Ia84bde47c5e4b254b636b2697c4f4889ce4f8b95
Diffstat (limited to 'res')
-rw-r--r-- | res/values-land/styles.xml | 6 | ||||
-rw-r--r-- | res/values-port/styles.xml | 5 | ||||
-rw-r--r-- | res/values-sw340dp-port/styles.xml | 3 | ||||
-rw-r--r-- | res/values-sw600dp-port/styles.xml | 24 | ||||
-rw-r--r-- | res/values-sw600dp/styles.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 6 |
6 files changed, 43 insertions, 2 deletions
diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml index 7949d2d..71ab658 100644 --- a/res/values-land/styles.xml +++ b/res/values-land/styles.xml @@ -23,6 +23,7 @@ <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> </style> + <!-- Search Bar --> <style name="QSBBar"> <item name="android:orientation">vertical</item> @@ -65,5 +66,10 @@ <item name="android:shadowDy">1.0</item> <item name="android:shadowRadius">4.0</item> </style> + +<!-- AppsCustomize --> + <style name="TabIndicator.AppsCustomize"> + <item name="android:maxWidth">200dp</item> + </style> </resources> diff --git a/res/values-port/styles.xml b/res/values-port/styles.xml index d631d1e..20369c9 100644 --- a/res/values-port/styles.xml +++ b/res/values-port/styles.xml @@ -29,4 +29,9 @@ <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> </style> + +<!-- AppsCustomize --> + <style name="TabIndicator.AppsCustomize"> + <item name="android:maxWidth">130dp</item> + </style> </resources> diff --git a/res/values-sw340dp-port/styles.xml b/res/values-sw340dp-port/styles.xml index 9a42249..b309d85 100644 --- a/res/values-sw340dp-port/styles.xml +++ b/res/values-sw340dp-port/styles.xml @@ -26,6 +26,9 @@ </style> <!-- AppsCustomize --> + <style name="TabIndicator.AppsCustomize"> + <item name="android:maxWidth">150dp</item> + </style> <style name="WorkspaceIcon.Portrait.AppsCustomize"> <item name="android:singleLine">false</item> <item name="android:maxLines">2</item> diff --git a/res/values-sw600dp-port/styles.xml b/res/values-sw600dp-port/styles.xml new file mode 100644 index 0000000..57f07ac --- /dev/null +++ b/res/values-sw600dp-port/styles.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +* Copyright (C) 2011 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. +*/ +--> + +<resources> + <style name="TabIndicator.AppsCustomize"> + <item name="android:maxWidth">180dp</item> + </style> +</resources> diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml index e0542ba..87110da 100644 --- a/res/values-sw600dp/styles.xml +++ b/res/values-sw600dp/styles.xml @@ -114,6 +114,7 @@ <item name="android:paddingLeft">32dp</item> <item name="android:paddingRight">32dp</item> <item name="android:textSize">14sp</item> + <item name="android:maxWidth">240dp</item> </style> <!-- QSB Search / Drop Target bar --> diff --git a/res/values/styles.xml b/res/values/styles.xml index 502a836..909887c 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -161,13 +161,15 @@ <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">24dp</item> - <item name="android:paddingRight">24dp</item> + <item name="android:paddingLeft">20dp</item> + <item name="android:paddingRight">20dp</item> <item name="android:background">@drawable/tab_widget_indicator_selector</item> <item name="android:textColor">?android:attr/textColorPrimary</item> <item name="android:textSize">12sp</item> <item name="android:textStyle">bold</item> <item name="android:textAllCaps">true</item> + <item name="android:singleLine">true</item> + <item name="android:ellipsize">end</item> </style> <style name="TabIndicator.AppsCustomize"> <!-- Overridden in values-land --> |