summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/res/layout/card_simple_outlined.xml
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2023-12-11 02:27:50 +0100
committert895 <clombardo169@gmail.com>2023-12-12 23:25:36 +0100
commite975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f (patch)
tree7195fba36da6368913d75d633649d74915383cd8 /src/android/app/src/main/res/layout/card_simple_outlined.xml
parentfrontend_common: Fix settings reload bug (diff)
downloadyuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar.gz
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar.bz2
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar.lz
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar.xz
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.tar.zst
yuzu-e975f3cde9d4dcb1d9e2bbce116f9a9ba99bf03f.zip
Diffstat (limited to 'src/android/app/src/main/res/layout/card_simple_outlined.xml')
-rw-r--r--src/android/app/src/main/res/layout/card_simple_outlined.xml75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/android/app/src/main/res/layout/card_simple_outlined.xml b/src/android/app/src/main/res/layout/card_simple_outlined.xml
new file mode 100644
index 000000000..b73930e7e
--- /dev/null
+++ b/src/android/app/src/main/res/layout/card_simple_outlined.xml
@@ -0,0 +1,75 @@
+<?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:paddingVertical="16dp"
+ android:paddingHorizontal="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" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.LabelMedium"
+ android:id="@+id/details"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAlignment="viewStart"
+ android:textSize="14sp"
+ android:textStyle="bold"
+ android:singleLine="true"
+ android:marqueeRepeatLimit="marquee_forever"
+ android:ellipsize="none"
+ android:requiresFadingEdge="horizontal"
+ android:layout_marginTop="6dp"
+ android:visibility="gone"
+ tools:visibility="visible"
+ tools:text="/tree/primary:Games" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</com.google.android.material.card.MaterialCardView>