diff --git a/res/color/tab_widget_indicator_color.xml b/res/color/tab_widget_indicator_color.xml
new file mode 100644
index 0000000000..cbe9e3e19d
--- /dev/null
+++ b/res/color/tab_widget_indicator_color.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
diff --git a/res/drawable-hdpi/tab_selected_focused_holo.9.png b/res/drawable-hdpi/tab_selected_focused_holo.9.png
new file mode 100644
index 0000000000..1ba35d5548
Binary files /dev/null and b/res/drawable-hdpi/tab_selected_focused_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_selected_holo.9.png b/res/drawable-hdpi/tab_selected_holo.9.png
new file mode 100644
index 0000000000..ef913cc8e5
Binary files /dev/null and b/res/drawable-hdpi/tab_selected_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png b/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png
new file mode 100644
index 0000000000..d7e968806a
Binary files /dev/null and b/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_selected_pressed_holo.9.png b/res/drawable-hdpi/tab_selected_pressed_holo.9.png
new file mode 100644
index 0000000000..b8b1fcfe26
Binary files /dev/null and b/res/drawable-hdpi/tab_selected_pressed_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_unselected_focused_holo.9.png b/res/drawable-hdpi/tab_unselected_focused_holo.9.png
new file mode 100644
index 0000000000..256e8e7302
Binary files /dev/null and b/res/drawable-hdpi/tab_unselected_focused_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_unselected_holo.9.png b/res/drawable-hdpi/tab_unselected_holo.9.png
index db6fc144c2..eaa306aee1 100644
Binary files a/res/drawable-hdpi/tab_unselected_holo.9.png and b/res/drawable-hdpi/tab_unselected_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png b/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png
new file mode 100644
index 0000000000..d17b82026b
Binary files /dev/null and b/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png differ
diff --git a/res/drawable-hdpi/tab_unselected_pressed_holo.9.png b/res/drawable-hdpi/tab_unselected_pressed_holo.9.png
new file mode 100644
index 0000000000..a344994fb5
Binary files /dev/null and b/res/drawable-hdpi/tab_unselected_pressed_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_selected_focused_holo.9.png b/res/drawable-mdpi/tab_selected_focused_holo.9.png
new file mode 100644
index 0000000000..9a33cd2d92
Binary files /dev/null and b/res/drawable-mdpi/tab_selected_focused_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_selected_holo.9.png b/res/drawable-mdpi/tab_selected_holo.9.png
new file mode 100644
index 0000000000..e029e577a7
Binary files /dev/null and b/res/drawable-mdpi/tab_selected_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png b/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png
new file mode 100644
index 0000000000..285116e31e
Binary files /dev/null and b/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_selected_pressed_holo.9.png b/res/drawable-mdpi/tab_selected_pressed_holo.9.png
new file mode 100644
index 0000000000..dadefa758a
Binary files /dev/null and b/res/drawable-mdpi/tab_selected_pressed_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_unselected_focused_holo.9.png b/res/drawable-mdpi/tab_unselected_focused_holo.9.png
new file mode 100644
index 0000000000..032a9921c5
Binary files /dev/null and b/res/drawable-mdpi/tab_unselected_focused_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png b/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png
new file mode 100644
index 0000000000..3845135847
Binary files /dev/null and b/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png differ
diff --git a/res/drawable-mdpi/tab_unselected_pressed_holo.9.png b/res/drawable-mdpi/tab_unselected_pressed_holo.9.png
new file mode 100644
index 0000000000..23fd8c9b35
Binary files /dev/null and b/res/drawable-mdpi/tab_unselected_pressed_holo.9.png differ
diff --git a/res/drawable/tab_widget_indicator_selector.xml b/res/drawable/tab_widget_indicator_selector.xml
new file mode 100644
index 0000000000..ff92b4048a
--- /dev/null
+++ b/res/drawable/tab_widget_indicator_selector.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/layout-xlarge-land/all_apps_tabbed.xml b/res/layout-xlarge-land/all_apps_tabbed.xml
index 8a0e8b8439..eb506d16f9 100644
--- a/res/layout-xlarge-land/all_apps_tabbed.xml
+++ b/res/layout-xlarge-land/all_apps_tabbed.xml
@@ -50,7 +50,7 @@
launcher:cellCountY="5"
launcher:pageLayoutWidthGap="36dp"
launcher:pageLayoutHeightGap="6dp"
- launcher:pageLayoutPaddingTop="15dp"
+ launcher:pageLayoutPaddingTop="20dp"
launcher:pageLayoutPaddingBottom="15dp"
launcher:pageLayoutPaddingLeft="40dp"
launcher:pageLayoutPaddingRight="40dp">
diff --git a/res/layout-xlarge-land/launcher.xml b/res/layout-xlarge-land/launcher.xml
index f93506e263..0fc954b18e 100644
--- a/res/layout-xlarge-land/launcher.xml
+++ b/res/layout-xlarge-land/launcher.xml
@@ -157,7 +157,7 @@
+
+
+
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java
index 0e32461546..4feb9984cf 100644
--- a/src/com/android/launcher2/AllAppsTabbed.java
+++ b/src/com/android/launcher2/AllAppsTabbed.java
@@ -16,7 +16,7 @@
package com.android.launcher2;
-import com.android.launcher.R;
+import java.util.ArrayList;
import android.animation.Animator;
import android.animation.ObjectAnimator;
@@ -25,11 +25,14 @@ import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.util.Log;
+import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TabHost;
+import android.widget.TabWidget;
+import android.widget.TextView;
-import java.util.ArrayList;
+import com.android.launcher.R;
/**
* Implements a tabbed version of AllApps2D.
@@ -43,10 +46,12 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
private AllAppsPagedView mAllApps;
private Context mContext;
+ private final LayoutInflater mInflater;
public AllAppsTabbed(Context context, AttributeSet attrs) {
super(context, attrs);
mContext = context;
+ mInflater = LayoutInflater.from(context);
}
@Override
@@ -68,11 +73,15 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
}
};
- String label = mContext.getString(R.string.all_apps_tab_all);
- addTab(newTabSpec(TAG_ALL).setIndicator(label).setContent(contentFactory));
+ TextView tabView;
+ TabWidget tabWidget = (TabWidget) findViewById(com.android.internal.R.id.tabs);
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(mContext.getString(R.string.all_apps_tab_all));
+ addTab(newTabSpec(TAG_ALL).setIndicator(tabView).setContent(contentFactory));
- label = mContext.getString(R.string.all_apps_tab_downloaded);
- addTab(newTabSpec(TAG_DOWNLOADED).setIndicator(label).setContent(contentFactory));
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(mContext.getString(R.string.all_apps_tab_downloaded));
+ addTab(newTabSpec(TAG_DOWNLOADED).setIndicator(tabView).setContent(contentFactory));
setOnTabChangedListener(new OnTabChangeListener() {
public void onTabChanged(String tabId) {
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 1a486d705b..033ccc3d44 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -99,6 +99,7 @@ import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.TabHost;
+import android.widget.TabWidget;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.TabHost.OnTabChangeListener;
@@ -306,18 +307,27 @@ public final class Launcher extends Activity
}
};
- String widgetsLabel = getString(R.string.widgets_tab_label);
+
+ TextView tabView;
+ TabWidget tabWidget = (TabWidget)
+ mHomeCustomizationDrawer.findViewById(com.android.internal.R.id.tabs);
+
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(getString(R.string.widgets_tab_label));
mHomeCustomizationDrawer.addTab(mHomeCustomizationDrawer.newTabSpec(WIDGETS_TAG)
- .setIndicator(widgetsLabel).setContent(contentFactory));
- String applicationsLabel = getString(R.string.applications_tab_label);
+ .setIndicator(tabView).setContent(contentFactory));
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(getString(R.string.applications_tab_label));
mHomeCustomizationDrawer.addTab(mHomeCustomizationDrawer.newTabSpec(APPLICATIONS_TAG)
- .setIndicator(applicationsLabel).setContent(contentFactory));
- String wallpapersLabel = getString(R.string.wallpapers_tab_label);
+ .setIndicator(tabView).setContent(contentFactory));
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(getString(R.string.wallpapers_tab_label));
mHomeCustomizationDrawer.addTab(mHomeCustomizationDrawer.newTabSpec(WALLPAPERS_TAG)
- .setIndicator(wallpapersLabel).setContent(contentFactory));
- String shortcutsLabel = getString(R.string.shortcuts_tab_label);
+ .setIndicator(tabView).setContent(contentFactory));
+ tabView = (TextView) mInflater.inflate(R.layout.tab_widget_indicator, tabWidget, false);
+ tabView.setText(getString(R.string.shortcuts_tab_label));
mHomeCustomizationDrawer.addTab(mHomeCustomizationDrawer.newTabSpec(SHORTCUTS_TAG)
- .setIndicator(shortcutsLabel).setContent(contentFactory));
+ .setIndicator(tabView).setContent(contentFactory));
mHomeCustomizationDrawer.setOnTabChangedListener(new OnTabChangeListener() {
public void onTabChanged(String tabId) {
// animate the changing of the tab content by fading pages in and out