diff options
Diffstat (limited to 'src/android/app/src/main/res/layout/card_home_option.xml')
-rw-r--r-- | src/android/app/src/main/res/layout/card_home_option.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/android/app/src/main/res/layout/card_home_option.xml b/src/android/app/src/main/res/layout/card_home_option.xml new file mode 100644 index 000000000..dc289db17 --- /dev/null +++ b/src/android/app/src/main/res/layout/card_home_option.xml @@ -0,0 +1,60 @@ +<?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/materialCardViewFilledStyle" + android:id="@+id/option_card" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginVertical="12dp" + android:layout_marginHorizontal="16dp" + android:background="?attr/selectableItemBackground" + android:backgroundTint="?attr/colorSurfaceVariant" + android:clickable="true" + android:focusable="true"> + + <LinearLayout + android:id="@+id/option_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:id="@+id/option_icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginStart="24dp" + android:layout_gravity="center_vertical" + app:tint="?attr/colorOnSurface" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginVertical="10dp" + android:layout_marginHorizontal="20dp" + android:orientation="vertical"> + + <com.google.android.material.textview.MaterialTextView + style="@style/TextAppearance.Material3.BodyMedium" + android:id="@+id/option_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAlignment="viewStart" + android:textStyle="bold" + android:textSize="16sp" + tools:text="@string/install_prod_keys" /> + + <com.google.android.material.textview.MaterialTextView + style="@style/TextAppearance.Material3.BodySmall" + android:id="@+id/option_description" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAlignment="viewStart" + android:textSize="14sp" + android:layout_marginTop="5dp" + tools:text="@string/install_prod_keys_description" /> + + </LinearLayout> + + </LinearLayout> + +</com.google.android.material.card.MaterialCardView> |