diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-13 15:11:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 15:11:55 +0100 |
commit | b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043 (patch) | |
tree | 52c90ba296de5eff70b63fca0447117d8bb697f2 /src/android/app/src/main/res/layout/list_item_setting.xml | |
parent | Merge pull request #11980 from german77/moment (diff) | |
parent | android: Use the same transition animation between every fragment in settings (diff) | |
download | yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar.gz yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar.bz2 yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar.lz yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar.xz yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.tar.zst yuzu-b6fe8a0b3f0fb9840ea65efb6cd8a592100a0043.zip |
Diffstat (limited to 'src/android/app/src/main/res/layout/list_item_setting.xml')
-rw-r--r-- | src/android/app/src/main/res/layout/list_item_setting.xml | 72 |
1 files changed, 45 insertions, 27 deletions
diff --git a/src/android/app/src/main/res/layout/list_item_setting.xml b/src/android/app/src/main/res/layout/list_item_setting.xml index f1037a740..544280e75 100644 --- a/src/android/app/src/main/res/layout/list_item_setting.xml +++ b/src/android/app/src/main/res/layout/list_item_setting.xml @@ -10,41 +10,59 @@ android:focusable="true" android:gravity="center_vertical" android:minHeight="72dp" - android:padding="@dimen/spacing_large"> + android:padding="16dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> + android:orientation="horizontal"> - <com.google.android.material.textview.MaterialTextView - android:id="@+id/text_setting_name" - style="@style/TextAppearance.Material3.HeadlineMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textAlignment="viewStart" - android:textSize="16sp" - app:lineHeight="22dp" - tools:text="Setting Name" /> - - <com.google.android.material.textview.MaterialTextView - android:id="@+id/text_setting_description" - style="@style/TextAppearance.Material3.BodySmall" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacing_small" - android:textAlignment="viewStart" - tools:text="@string/app_disclaimer" /> + <ImageView + android:id="@+id/icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="24dp" + android:layout_gravity="center_vertical" + android:visibility="gone" + app:tint="?attr/colorOnSurface" /> - <com.google.android.material.textview.MaterialTextView - android:id="@+id/text_setting_value" - style="@style/TextAppearance.Material3.LabelMedium" + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/spacing_small" - android:textAlignment="viewStart" - android:textStyle="bold" - tools:text="1x" /> + android:orientation="vertical"> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/text_setting_name" + style="@style/TextAppearance.Material3.HeadlineMedium" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAlignment="viewStart" + android:textSize="17sp" + app:lineHeight="22dp" + tools:text="Setting Name" /> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/text_setting_description" + style="@style/TextAppearance.Material3.BodySmall" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacing_small" + android:textAlignment="viewStart" + tools:text="@string/app_disclaimer" /> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/text_setting_value" + style="@style/TextAppearance.Material3.LabelMedium" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacing_small" + android:textAlignment="viewStart" + android:textStyle="bold" + android:textSize="13sp" + tools:text="1x" /> + + </LinearLayout> </LinearLayout> |