summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml')
-rw-r--r--app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml b/app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml
new file mode 100644
index 000000000..c3a133f6f
--- /dev/null
+++ b/app/src/main/res/layouts/mastodon/layout/imagelistpreference_item_card.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout 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"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="16dp"
+ android:paddingLeft="16dp"
+ android:paddingTop="8dp"
+ android:paddingEnd="16dp"
+ android:paddingRight="16dp"
+ android:paddingBottom="8dp">
+
+ <TextView
+ android:id="@+id/imagelistpreference_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_marginStart="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_toStartOf="@+id/imagelistpreference_card"
+ android:layout_toEndOf="@+id/imagelistpreference_radio" />
+
+ <RadioButton
+ android:id="@+id/imagelistpreference_radio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:clickable="false"
+ android:focusable="false" />
+
+ <androidx.cardview.widget.CardView
+ android:id="@+id/imagelistpreference_card"
+ android:layout_width="64dp"
+ android:layout_height="64dp"
+ android:layout_alignParentEnd="true"
+ android:layout_margin="5dp"
+ android:layout_marginEnd="4dp"
+ android:elevation="12dp"
+ app:cardCornerRadius="8dp">
+
+ <ImageView
+ android:id="@+id/imagelistpreference_image"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="8dp"
+ tools:src="@drawable/fedilab_logo_hero" />
+ </androidx.cardview.widget.CardView>
+</RelativeLayout> \ No newline at end of file