Compare commits

...

2 commits

Author SHA1 Message Date
Amir E. Aharoni
09c8d987e1
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".
2025-10-15 13:52:05 +09:00
Amir E. Aharoni
2e52adbef8
Clean up empty tags in XML files (#6505)
This resolves all the "XML empty tags" lint errors.
2025-10-15 07:37:17 +09:00
5 changed files with 5 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/white"></solid> <solid android:color="@color/white" />
</shape> </shape>

View file

@ -16,7 +16,7 @@
android:padding="12dp" android:padding="12dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"></EditText> app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/recent_searches" android:id="@+id/recent_searches"

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

@ -119,7 +119,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"></LinearLayout> android:orientation="horizontal" />
<LinearLayout <LinearLayout
android:id="@+id/ll_location_status" android:id="@+id/ll_location_status"

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"