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
This commit is contained in:
Michael Jurka
2011-06-03 14:13:42 -07:00
parent a9c683d97e
commit f8e0c76e03
2 changed files with 26 additions and 1 deletions

View File

@@ -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>

View File

@@ -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(