From 3fa08833fff32664b8f2a8aa4cb4fa498e7a6105 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Mon, 23 Jan 2023 22:02:21 -0500 Subject: [PATCH] Android: Fix rtl layout for multiple settings activity views --- .../src/main/res/layout/list_item_header.xml | 5 +++- .../src/main/res/layout/list_item_setting.xml | 30 ++++++++++--------- .../res/layout/list_item_setting_switch.xml | 2 ++ .../src/main/res/layout/list_item_submenu.xml | 18 +++++------ 4 files changed, 31 insertions(+), 24 deletions(-) diff --git a/Source/Android/app/src/main/res/layout/list_item_header.xml b/Source/Android/app/src/main/res/layout/list_item_header.xml index ba349cebcf..94f97d99e5 100644 --- a/Source/Android/app/src/main/res/layout/list_item_header.xml +++ b/Source/Android/app/src/main/res/layout/list_item_header.xml @@ -10,12 +10,15 @@ android:id="@+id/text_header_name" android:layout_width="wrap_content" android:layout_height="46dp" - android:gravity="bottom" + android:layout_alignParentEnd="true" + android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:layout_marginStart="@dimen/spacing_large" android:layout_marginBottom="2dp" + android:gravity="start|bottom" android:textColor="?attr/colorPrimary" android:textStyle="bold" + android:textAlignment="viewStart" tools:text="CPU Settings" /> diff --git a/Source/Android/app/src/main/res/layout/list_item_setting.xml b/Source/Android/app/src/main/res/layout/list_item_setting.xml index 439a918f9e..11d30534ce 100644 --- a/Source/Android/app/src/main/res/layout/list_item_setting.xml +++ b/Source/Android/app/src/main/res/layout/list_item_setting.xml @@ -4,37 +4,39 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minHeight="72dp" android:background="?android:attr/selectableItemBackground" + android:clickable="true" android:focusable="true" - android:clickable="true"> + android:minHeight="72dp"> + android:textSize="16sp" + android:textAlignment="viewStart" + tools:text="Setting Name" /> + android:layout_marginBottom="@dimen/spacing_large" + android:layout_marginEnd="@dimen/spacing_large" + android:layout_marginStart="@dimen/spacing_large" + android:layout_marginTop="@dimen/spacing_small" + android:textAlignment="viewStart" + tools:text="@string/overclock_enable_description" /> diff --git a/Source/Android/app/src/main/res/layout/list_item_setting_switch.xml b/Source/Android/app/src/main/res/layout/list_item_setting_switch.xml index 9613a7337f..06c3d30840 100644 --- a/Source/Android/app/src/main/res/layout/list_item_setting_switch.xml +++ b/Source/Android/app/src/main/res/layout/list_item_setting_switch.xml @@ -21,6 +21,7 @@ android:layout_marginTop="@dimen/spacing_large" android:layout_toStartOf="@+id/setting_switch" android:textSize="16sp" + android:textAlignment="viewStart" tools:text="@string/overclock_enable"/> - + android:minHeight="54dp"> + android:textSize="16sp" + android:textAlignment="viewStart" + tools:text="Setting Name" />