Bug 1264243 - Prevent "Add to home screen" button from overlaying page icon. r=ahunt
authorSebastian Kaspari <s.kaspari@gmail.com>
Wed, 13 Apr 2016 12:59:51 +0200
changeset 331313 7b9c723526fff7835105a1155387fd5b0b96d6a1
parent 331312 0fdc24bbda675294c280e9336646014ea1add02d
child 331314 4646acc6df79b29e504d0fe43fef4e014b9164cb
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahunt
bugs1264243
milestone48.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 1264243 - Prevent "Add to home screen" button from overlaying page icon. r=ahunt MozReview-Commit-ID: JPK1y5B1HbD
mobile/android/services/src/main/res/layout/homescreen_prompt.xml
--- a/mobile/android/services/src/main/res/layout/homescreen_prompt.xml
+++ b/mobile/android/services/src/main/res/layout/homescreen_prompt.xml
@@ -72,19 +72,21 @@
         <Button
             android:id="@+id/add"
             style="@style/Widget.BaseButton"
             android:layout_width="wrap_content"
             android:layout_height="50dp"
             android:layout_alignParentRight="true"
             android:layout_below="@id/host"
             android:layout_marginBottom="20dp"
-            android:layout_marginLeft="20dp"
+            android:layout_marginLeft="100dp"
             android:layout_marginRight="30dp"
             android:background="@drawable/button_background_action_orange_round"
             android:paddingLeft="16dp"
             android:paddingRight="16dp"
             android:text="@string/promotion_add_to_homescreen"
+            android:maxLines="2"
+            android:ellipsize="end"
             android:textColor="@android:color/white"
             android:textSize="16sp" />
 
     </RelativeLayout>
 </merge>