Making Launcher tabs more consistent with system. (Bug: 5184498)

Change-Id: Idac7c14fdefcdad0bb88b1c5b34fa3e10c2733ac
This commit is contained in:
Winson Chung
2011-10-14 12:26:54 -07:00
parent 2dcda1f72c
commit d2c1f80aa7
4 changed files with 14 additions and 33 deletions

View File

@@ -107,11 +107,16 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
// Create the tabs
TextView tabView;
String label;
label = mContext.getString(R.string.all_apps_button_label);
tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);
tabView.setText(mContext.getString(R.string.all_apps_button_label));
tabView.setText(label);
tabView.setContentDescription(label);
addTab(newTabSpec(APPS_TAB_TAG).setIndicator(tabView).setContent(contentFactory));
label = mContext.getString(R.string.widgets_tab_label);
tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);
tabView.setText(mContext.getString(R.string.widgets_tab_label));
tabView.setText(label);
tabView.setContentDescription(label);
addTab(newTabSpec(WIDGETS_TAB_TAG).setIndicator(tabView).setContent(contentFactory));
setOnTabChangedListener(this);