[fenix] For https://github.com/mozilla-mobile/fenix/issues/9422: Align widget text to viewStart to support RTL layouts

pull/600/head
mcarare 5 years ago committed by Mihai Adrian
parent 2ec2ee395b
commit 34394af021

@ -3,12 +3,12 @@
- 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/. -->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/rounded_white_corners"
android:layout_gravity="center">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/rounded_white_corners"
android:layout_gravity="center">
<ImageView
android:id="@+id/button_search_widget_new_tab_icon"
@ -24,11 +24,13 @@
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical"
android:textAlignment="viewStart"
android:textSize="15sp"
android:textColor="@color/search_widget_text"
android:letterSpacing="-0.025"
android:layout_marginStart="9dp"
android:layout_marginTop="9dp"/>
android:layout_marginTop="9dp"
tools:ignore="RtlCompat" />
<ImageButton
android:id="@+id/button_search_widget_voice"

@ -5,7 +5,8 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="192dp"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="192dp"
android:layout_height="50dp"
android:background="@drawable/rounded_white_corners"
android:layout_gravity="center">
@ -24,11 +25,13 @@
android:layout_width="match_parent"
android:layout_height="32dp"
android:gravity="center_vertical"
android:textAlignment="viewStart"
android:textSize="15sp"
android:textColor="@color/search_widget_text"
android:letterSpacing="-0.025"
android:layout_marginStart="9dp"
android:layout_marginTop="9dp"/>
android:layout_marginTop="9dp"
tools:ignore="RtlCompat" />
<ImageButton
android:id="@+id/button_search_widget_voice"

Loading…
Cancel
Save