For #9422: Align widget text to viewStart to support RTL layouts
parent
327009efc4
commit
4d0b37a3b8
|
@ -3,12 +3,12 @@
|
||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
- 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/. -->
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
||||||
android:layout_height="50dp"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:background="@drawable/rounded_white_corners"
|
android:background="@drawable/rounded_white_corners"
|
||||||
android:layout_gravity="center">
|
android:layout_gravity="center">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/button_search_widget_new_tab_icon"
|
android:id="@+id/button_search_widget_new_tab_icon"
|
||||||
|
@ -24,11 +24,13 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="32dp"
|
android:layout_height="32dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textColor="@color/search_widget_text"
|
android:textColor="@color/search_widget_text"
|
||||||
android:letterSpacing="-0.025"
|
android:letterSpacing="-0.025"
|
||||||
android:layout_marginStart="9dp"
|
android:layout_marginStart="9dp"
|
||||||
android:layout_marginTop="9dp"/>
|
android:layout_marginTop="9dp"
|
||||||
|
tools:ignore="RtlCompat" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/button_search_widget_voice"
|
android:id="@+id/button_search_widget_voice"
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
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:layout_height="50dp"
|
||||||
android:background="@drawable/rounded_white_corners"
|
android:background="@drawable/rounded_white_corners"
|
||||||
android:layout_gravity="center">
|
android:layout_gravity="center">
|
||||||
|
@ -24,11 +25,13 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="32dp"
|
android:layout_height="32dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:textAlignment="viewStart"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:textColor="@color/search_widget_text"
|
android:textColor="@color/search_widget_text"
|
||||||
android:letterSpacing="-0.025"
|
android:letterSpacing="-0.025"
|
||||||
android:layout_marginStart="9dp"
|
android:layout_marginStart="9dp"
|
||||||
android:layout_marginTop="9dp"/>
|
android:layout_marginTop="9dp"
|
||||||
|
tools:ignore="RtlCompat" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/button_search_widget_voice"
|
android:id="@+id/button_search_widget_voice"
|
||||||
|
|
Loading…
Reference in New Issue