summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/swipeactions_row.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/swipeactions_row.xml')
-rw-r--r--app/src/main/res/layout/swipeactions_row.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/app/src/main/res/layout/swipeactions_row.xml b/app/src/main/res/layout/swipeactions_row.xml
new file mode 100644
index 000000000..df55d3f89
--- /dev/null
+++ b/app/src/main/res/layout/swipeactions_row.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ 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="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="8dp">
+
+ <TextView
+ android:id="@+id/swipeDirectionLabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/swipe_left"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:textColor="?android:attr/textColorPrimary"
+ android:textSize="18sp" />
+
+ <TextView
+ android:id="@+id/swipeActionLabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_below="@+id/swipeDirectionLabel"
+ android:textSize="14sp"
+ tools:text="@string/add_to_queue_label" />
+
+ <Button
+ android:id="@+id/changeButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:text="@string/change_setting"
+ style="@style/Widget.MaterialComponents.Button.TextButton" />
+
+ </RelativeLayout>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?attr/background_elevated" />
+
+ <LinearLayout
+ android:id="@+id/previewContainer"
+ android:layout_width="match_parent"
+ android:layout_height="76dp"
+ android:gravity="center"
+ android:foreground="?attr/selectableItemBackground"
+ android:orientation="horizontal">
+
+ <include
+ android:id="@+id/mockEpisode"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.7"
+ layout="@layout/feeditemlist_item" />
+
+ <ImageView
+ android:id="@+id/swipeIcon"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.3"
+ android:background="?attr/background_elevated"
+ android:padding="22dp"
+ app:srcCompat="@drawable/ic_add" />
+
+ </LinearLayout>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?attr/background_elevated" />
+
+</LinearLayout>