diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-10-31 00:29:00 +0100 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-10-31 19:41:40 +0100 |
commit | e8cb8b2668c86ddad527cb8ff7de7f992080dece (patch) | |
tree | 18adfa82dd5ea699cd8f7bf7ad6d7e73d525469e /src/android/app/src/main/res/layout/card_applet_option.xml | |
parent | Merge pull request #11922 from t895/simplify-card-layout (diff) | |
download | yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar.gz yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar.bz2 yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar.lz yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar.xz yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.tar.zst yuzu-e8cb8b2668c86ddad527cb8ff7de7f992080dece.zip |
Diffstat (limited to 'src/android/app/src/main/res/layout/card_applet_option.xml')
-rw-r--r-- | src/android/app/src/main/res/layout/card_applet_option.xml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/android/app/src/main/res/layout/card_applet_option.xml b/src/android/app/src/main/res/layout/card_applet_option.xml new file mode 100644 index 000000000..19fbec9f1 --- /dev/null +++ b/src/android/app/src/main/res/layout/card_applet_option.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + style="?attr/materialCardViewOutlinedStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginHorizontal="16dp" + android:layout_marginVertical="12dp" + android:background="?attr/selectableItemBackground" + android:clickable="true" + android:focusable="true"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_gravity="center" + android:padding="24dp"> + + <ImageView + android:id="@+id/icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginEnd="20dp" + android:layout_gravity="center_vertical" + app:tint="?attr/colorOnSurface" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:orientation="vertical" + android:layout_gravity="center_vertical"> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/title" + style="@style/TextAppearance.Material3.TitleMedium" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAlignment="viewStart" + tools:text="@string/applets" /> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/description" + style="@style/TextAppearance.Material3.BodyMedium" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="6dp" + android:textAlignment="viewStart" + tools:text="@string/applets_description" /> + + </LinearLayout> + + </LinearLayout> + +</com.google.android.material.card.MaterialCardView> |