Constrain layout to start instead of left
Several of the text labels and icons on the new printer info screen are
constrained by their left edges. They should be constrained to the
start to support RTL locales.
Bug: 428415811
Test: Viewed printer info page
Flag: EXEMPT bugfix
Change-Id: I90182e9a336c1210a623cd4c884c1de4d2fb9b02
diff --git "a/res/flag\050com.android.bips.flags.printer_info_details\051/layout/combined_info_recs.xml" "b/res/flag\050com.android.bips.flags.printer_info_details\051/layout/combined_info_recs.xml"
index ee75b57..0169fd4 100644
--- "a/res/flag\050com.android.bips.flags.printer_info_details\051/layout/combined_info_recs.xml"
+++ "b/res/flag\050com.android.bips.flags.printer_info_details\051/layout/combined_info_recs.xml"
@@ -47,7 +47,7 @@
style="@style/TextAppearance.AppCompat.Subhead"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:drawableLeft="@drawable/ic_menu_add"
+ android:drawableStart="@drawable/ic_menu_add"
android:drawablePadding="@dimen/mopria_padding_2dp"
android:maxLines="1"
android:padding="@dimen/mopria_padding_5dp"
diff --git "a/res/flag\050com.android.bips.flags.printer_info_details\051/layout/printer_information.xml" "b/res/flag\050com.android.bips.flags.printer_info_details\051/layout/printer_information.xml"
index 105e2da..347b405 100644
--- "a/res/flag\050com.android.bips.flags.printer_info_details\051/layout/printer_information.xml"
+++ "b/res/flag\050com.android.bips.flags.printer_info_details\051/layout/printer_information.xml"
@@ -32,7 +32,7 @@
android:layout_marginTop="@dimen/mopria_padding_18dp"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/printer_name"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/printerIcon" />
<TextView
@@ -53,7 +53,7 @@
android:layout_marginTop="@dimen/mopria_padding_18dp"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/media_ready"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/printerStatusLayout" />
<TextView
@@ -74,7 +74,7 @@
android:layout_marginTop="@dimen/mopria_padding_18dp"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/supply_levels"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mediaReady" />
<androidx.appcompat.widget.AppCompatImageView
@@ -101,7 +101,7 @@
android:layout_width="@dimen/linear_progress_bar_width"
android:layout_height="@dimen/linear_progress_bar_height"
android:indeterminate="true"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/printerStatusLabel" />
<TextView
@@ -122,7 +122,7 @@
android:layout_height="wrap_content"
android:text="@string/status"
android:textColor="?android:attr/textColorPrimary"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -130,7 +130,7 @@
android:id="@+id/inkLevelsRecyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/inkLevelsLabel" />
-</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
+</androidx.constraintlayout.widget.ConstraintLayout>