Bug 1090364 - Enable fading edges in tab strip (r=mcomella)
authorLucas Rocha <lucasr@lucasr.org>
Thu, 30 Oct 2014 10:26:23 +0000
changeset 229308 34e45f316b668c6d301d8988f9ec02f09f6b6a09
parent 229307 b7772a34efc5aecf3137980723b8864e2a91cdbc
child 229309 5a85c6a1757b45fb44f7bab52ccc90d0016e4a01
push id7326
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:58:42 +0000
treeherdermozilla-aurora@d3a3b2a0f2f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1090364
milestone36.0a1
Bug 1090364 - Enable fading edges in tab strip (r=mcomella)
mobile/android/base/newtablet/res/layout-large-v11/tab_strip.xml
--- a/mobile/android/base/newtablet/res/layout-large-v11/tab_strip.xml
+++ b/mobile/android/base/newtablet/res/layout-large-v11/tab_strip.xml
@@ -5,18 +5,20 @@
 
 <merge xmlns:android="http://schemas.android.com/apk/res/android">
 
     <org.mozilla.gecko.tabs.TabStripView
         android:id="@+id/tab_strip"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:layout_weight="1"
-        android:paddingTop="8dp"
-        android:paddingLeft="2dp"/>
+        android:layout_marginLeft="2dp"
+        android:requiresFadingEdge="horizontal"
+        android:fadingEdgeLength="10dp"
+        android:paddingTop="8dp"/>
 
     <ImageButton
         android:id="@+id/add_tab"
         style="@style/UrlBar.ImageButton"
         android:layout_width="@dimen/new_tablet_tab_strip_height"
         android:src="@drawable/tab_new_level"
         android:contentDescription="@string/new_tab"
         android:background="@drawable/action_bar_button_inverse"/>