Bug 927667 - [RTL] Align suggestion to end of icon, r=sebastian
authormaliu <max@mxli.us>
Thu, 15 Dec 2016 14:04:34 +0800
changeset 450588 111b09bfa3161cc7a752fe22cd62be173bfba8ad
parent 450587 1dd28a7e51a62b159d3dd6cafa7fe32da3afeb70
child 450589 74f4edb0d09dbb7809eadaff9d321d61203bbaf1
push id38911
push userbmo:cku@mozilla.com
push dateSat, 17 Dec 2016 03:26:49 +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>