Bug 1091673 - Use FadedTextView in new_tablet_tabs_item_cell.xml (r=lucasr)
authorMartyn Haigh <martyn.haigh@gmail.com>
Tue, 04 Nov 2014 16:09:17 +0000
changeset 213969 d283c18f5c9cd029a01c79d6f3015665bbf6a858
parent 213968 9ba384a83788fe5d1a4d9c2b499783208d0477f9
child 213970 6f5199eec3c01d86d22a3f96d2bd00beb2681f5e
push id27769
push userkwierso@gmail.com
push dateWed, 05 Nov 2014 03:53:35 +0000
treeherdermozilla-central@62990ec7ad78 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs1091673
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1091673 - Use FadedTextView in new_tablet_tabs_item_cell.xml (r=lucasr)
mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml
--- a/mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml
+++ b/mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml
@@ -1,14 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <org.mozilla.gecko.tabs.TabsLayoutItemView xmlns:android="http://schemas.android.com/apk/res/android"
+                                           xmlns:gecko="http://schemas.android.com/apk/res-auto"
                                            style="@style/TabsItem"
                                            android:focusable="true"
                                            android:id="@+id/info"
                                            android:layout_width="wrap_content"
                                            android:layout_height="wrap_content"
                                            android:gravity="center"
                                            android:orientation="vertical"
                                            android:paddingBottom="@dimen/new_tablet_tab_panel_grid_padding">
@@ -16,25 +17,27 @@
     <LinearLayout android:layout_width="fill_parent"
                   android:layout_height="wrap_content"
                   android:orientation="horizontal"
                   android:duplicateParentState="true"
                   android:paddingLeft="@dimen/new_tablet_tab_highlight_stroke_width"
                   android:paddingRight="@dimen/new_tablet_tab_highlight_stroke_width"
                   android:paddingBottom="@dimen/new_tablet_tab_highlight_stroke_width">
 
-        <TextView android:id="@+id/title"
-                  android:layout_width="0dip"
-                  android:layout_height="wrap_content"
-                  android:layout_weight="1.0"
-                  style="@style/TabLayoutItemTextAppearance"
-                  android:textSize="14sp"
-                  android:textColor="@color/new_tablet_tab_item_title"
-                  android:singleLine="true"
-                  android:duplicateParentState="true"/>
+        <org.mozilla.gecko.widget.FadedTextView android:id="@+id/title"
+                                                android:layout_width="0dip"
+                                                android:layout_height="wrap_content"
+                                                android:layout_weight="1.0"
+                                                style="@style/TabLayoutItemTextAppearance"
+                                                android:textSize="14sp"
+                                                android:textColor="@color/new_tablet_tab_item_title"
+                                                android:singleLine="true"
+                                                android:duplicateParentState="true"
+                                                gecko:fadeWidth="15dp"
+                                                android:paddingRight="5dp"/>
 
         <ImageButton android:id="@+id/close"
                      style="@style/TabsItemClose"
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:scaleType="center"
                      android:background="@android:color/transparent"
                      android:contentDescription="@string/close_tab"