OSDN Git Service

Fix bug 4088936 - Tabs in the action bar don't seem to have a fading edge
authorAdam Powell <adamp@google.com>
Tue, 15 Mar 2011 18:57:46 +0000 (11:57 -0700)
committerAdam Powell <adamp@google.com>
Tue, 15 Mar 2011 18:57:46 +0000 (11:57 -0700)
Change-Id: I23c736ad458c721dfa86563f66b42dd5d6ca708e

core/java/com/android/internal/widget/ActionBarView.java

index 586ba87..81d02ee 100644 (file)
@@ -462,6 +462,7 @@ public class ActionBarView extends ViewGroup {
     private void ensureTabsExist() {
         if (mTabScrollView == null) {
             mTabScrollView = new HorizontalScrollView(getContext());
+            mTabScrollView.setHorizontalFadingEdgeEnabled(true);
             mTabLayout = new LinearLayout(getContext(), null,
                     com.android.internal.R.attr.actionBarTabBarStyle);
             mTabScrollView.addView(mTabLayout);