Simplify android:gravity in two layouts (#6506)
Some checks failed
Android CI / Run tests and generate APK (push) Has been cancelled

The "Inspect Code" linter complained that these two files
had Right-to-left text compatibility issues. I couldn't
really see any problems neither in English nor in Hebrew,
but the linter's suggestion still made sense, so I cleaned it up.

This fixes all the errors of the type
"Android Lint: Internationalization / Right-to-left text compatibility issues".
This commit is contained in:
Amir E. Aharoni 2025-10-15 00:52:05 -04:00 committed by GitHub
parent 2e52adbef8
commit 09c8d987e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -22,9 +22,8 @@
android:id="@+id/tv_review_question" android:id="@+id/tv_review_question"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center"
tools:text="testing1" tools:text="testing1"
android:textAlignment="center"
android:textColor="?attr/reviewHeading" android:textColor="?attr/reviewHeading"
android:textSize="32sp"/> android:textSize="32sp"/>
@ -33,9 +32,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/filter_padding" android:layout_marginBottom="@dimen/filter_padding"
android:gravity="center_vertical" android:gravity="center"
tools:text="testing2" tools:text="testing2"
android:textAlignment="center"
android:textSize="22sp"/> android:textSize="22sp"/>
</LinearLayout> </LinearLayout>

View file

@ -35,7 +35,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/appwidget_title" android:id="@+id/appwidget_title"
android:textAlignment="center" android:textAlignment="center"
android:layout_gravity="bottom"
android:textColor="@color/white" android:textColor="@color/white"
android:layout_marginTop="@dimen/filter_padding" android:layout_marginTop="@dimen/filter_padding"
android:layout_marginStart="@dimen/tiny_padding" android:layout_marginStart="@dimen/tiny_padding"