summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-06-03 14:13:42 -0700
committerMichael Jurka <mikejurka@google.com>2011-06-03 14:16:58 -0700
commitf8e0c76e0326440e6371e8eaf88c446e565ee732 (patch)
treec91bff0eb4bf6ca32d344f50a250f4c4d71fee4a
parenta9c683d97eff5fde190e2e60d25259cea53eab24 (diff)
downloadandroid_packages_apps_Trebuchet-f8e0c76e0326440e6371e8eaf88c446e565ee732.tar.gz
android_packages_apps_Trebuchet-f8e0c76e0326440e6371e8eaf88c446e565ee732.tar.bz2
android_packages_apps_Trebuchet-f8e0c76e0326440e6371e8eaf88c446e565ee732.zip
Making customize mode tabs more compact
- reducing padding in portrait mode - changed "App shortcuts" -> "Apps" - fixes issues with Spanish and other languages in portrait mode and small devices Change-Id: I1e1d57873785421d37cfd9d78f9e6314e49ff1ac
-rw-r--r--res/values-xlarge-port/styles.xml25
-rw-r--r--src/com/android/launcher2/CustomizeTrayTabHost.java2
2 files changed, 26 insertions, 1 deletions
diff --git a/res/values-xlarge-port/styles.xml b/res/values-xlarge-port/styles.xml
new file mode 100644
index 000000000..2c5f5bb6e
--- /dev/null
+++ b/res/values-xlarge-port/styles.xml
@@ -0,0 +1,25 @@
+<?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="CustomizeTabIndicator.Wide" parent="TabIndicator.Wide">
+ <item name="android:paddingLeft">20dp</item>
+ <item name="android:paddingRight">20dp</item>
+ </style>
+</resources>
diff --git a/src/com/android/launcher2/CustomizeTrayTabHost.java b/src/com/android/launcher2/CustomizeTrayTabHost.java
index e1ba700ae..c261bfb9c 100644
--- a/src/com/android/launcher2/CustomizeTrayTabHost.java
+++ b/src/com/android/launcher2/CustomizeTrayTabHost.java
@@ -81,7 +81,7 @@ public class CustomizeTrayTabHost extends TabHost implements LauncherTransitiona
.setIndicator(tabView).setContent(contentFactory));
tabView = (TextView) mInflater.inflate(
R.layout.customize_tab_widget_indicator, tabWidget, false);
- tabView.setText(mContext.getString(R.string.applications_tab_label));
+ tabView.setText(mContext.getString(R.string.all_apps_tab_apps));
addTab(newTabSpec(APPLICATIONS_TAG)
.setIndicator(tabView).setContent(contentFactory));
tabView = (TextView) mInflater.inflate(