Bug 1070029 - Use FadedTextView in TabStripItemView (r=mcomella)
authorLucas Rocha <lucasr@lucasr.org>
Wed, 01 Oct 2014 15:22:50 +0100
changeset 208174 a1df0b99a0f0ec1a8698476cc2ac3f65eee72a1a
parent 208173 736437b0f9702f00b88b3e7ea73c38dce7539a8b
child 208175 9206bbc5454f5c57f2288c63a782acb5aabba02f
push id27579
push userkwierso@gmail.com
push dateWed, 01 Oct 2014 23:02:13 +0000
treeherderautoland@f771fd927304 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1070029
milestone35.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 1070029 - Use FadedTextView in TabStripItemView (r=mcomella)
mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml
--- a/mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml
+++ b/mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml
@@ -1,34 +1,36 @@
 <?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/. -->
 
-<merge xmlns:android="http://schemas.android.com/apk/res/android">
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+       xmlns:gecko="http://schemas.android.com/apk/res-auto">
 
    <ImageView
         android:id="@+id/favicon"
         android:layout_width="@dimen/tab_strip_favicon_size"
         android:layout_height="match_parent"
         android:layout_marginRight="9dp"
         android:scaleType="centerInside"
         android:duplicateParentState="true"/>
 
-    <org.mozilla.gecko.widget.ThemedTextView
+    <org.mozilla.gecko.widget.FadedTextView
         android:id="@+id/title"
         android:layout_width="0dip"
         android:layout_height="match_parent"
         android:layout_weight="1.0"
         android:layout_marginRight="-5dp"
         android:gravity="center_vertical"
         android:textSize="14sp"
         android:ellipsize="end"
         android:textColor="@color/new_tablet_tab_strip_item_title"
         android:maxLines="1"
+        gecko:fadeWidth="30dip"
         android:duplicateParentState="true"/>
 
     <org.mozilla.gecko.widget.ThemedImageButton
         android:id="@+id/close"
         android:layout_width="40dip"
         android:layout_height="match_parent"
         android:background="@android:color/transparent"
         android:scaleType="center"