Bug 927667 - [RTL] Align suggestion to end of icon, r=sebastian draft
authormaliu <max@mxli.us>
Thu, 15 Dec 2016 14:04:34 +0800
changeset 449842 ccafc5a5984be79fb7686482f3a6c08e41be8c01
parent 447934 d8f63b2935af0915a6a24b3ea8e27d9a09f66416
child 539609 d0713044f2277d63ca33832d4a59ad5f52b37a41
push id38696
push userbmo:max@mxli.us
push dateThu, 15 Dec 2016 08:52:33 +0000
reviewerssebastian
bugs927667
milestone53.0a1
Bug 927667 - [RTL] Align suggestion to end of icon, r=sebastian MozReview-Commit-ID: 57V2HAYizTu
mobile/android/base/resources/layout/search_engine_row.xml
--- a/mobile/android/base/resources/layout/search_engine_row.xml
+++ b/mobile/android/base/resources/layout/search_engine_row.xml
@@ -4,27 +4,31 @@
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <merge xmlns:android="http://schemas.android.com/apk/res/android">
 
     <org.mozilla.gecko.widget.FaviconView android:id="@+id/suggestion_icon"
                                           android:layout_width="@dimen/favicon_bg"
                                           android:layout_height="@dimen/favicon_bg"
                                           android:layout_marginLeft="16dip"
+                                          android:layout_marginStart="16dip"
                                           android:layout_marginRight="16dip"
+                                          android:layout_marginEnd="16dip"
                                           android:layout_centerVertical="true"
                                           android:minWidth="@dimen/favicon_bg"
                                           android:minHeight="@dimen/favicon_bg"/>
 
     <org.mozilla.gecko.widget.FlowLayout android:id="@+id/suggestion_layout"
                                          android:layout_toRightOf="@id/suggestion_icon"
+                                         android:layout_toEndOf="@id/suggestion_icon"
                                          android:layout_centerVertical="true"
                                          android:layout_width="wrap_content"
                                          android:layout_height="wrap_content"
                                          android:layout_marginRight="15dp"
+                                         android:layout_marginEnd="15dp"
                                          android:duplicateParentState="true">
 
         <include layout="@layout/suggestion_item"
                  android:id="@+id/suggestion_user_entered"/>
 
     </org.mozilla.gecko.widget.FlowLayout>
 
 </merge>