aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_row.xml
diff options
context:
space:
mode:
authorLena <lena@omega>2026-08-16 00:00:00 +0000
committerLena <lena@omega>2026-08-16 00:00:00 +0000
commit0890d139e5fa501561e469aca7854791a936fcb6 (patch)
tree58c6002cfb9f9b198a5013941ba01147aed1bc9a /app/src/main/res/layout/item_row.xml
parent6c0e672432dc466214c0838db378e8269d090ab4 (diff)
downloadrsend-0890d139e5fa501561e469aca7854791a936fcb6.tar.gz
app: support multiple named remotes
Let each folder select a named SSH endpoint and migrate the published 0.1.x configuration without discarding its folders or host pin.
Diffstat (limited to 'app/src/main/res/layout/item_row.xml')
-rw-r--r--app/src/main/res/layout/item_row.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_row.xml b/app/src/main/res/layout/item_row.xml
new file mode 100644
index 0000000..a436874
--- /dev/null
+++ b/app/src/main/res/layout/item_row.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/Widget.Rsend.Card"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?attr/selectableItemBackground">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginEnd="@dimen/space_m"
+ android:src="@drawable/ic_folder"
+ android:contentDescription="@null" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/rowTitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:maxLines="1"
+ android:ellipsize="end"
+ android:textAppearance="@style/TextAppearance.Rsend.Title" />
+
+ <TextView
+ android:id="@+id/rowSub"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:maxLines="1"
+ android:ellipsize="end"
+ android:textAppearance="@style/TextAppearance.Rsend.Caption" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/rowChip"
+ style="@style/Widget.Rsend.Chip"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/space_s" />
+</LinearLayout>