diff options
| author | Lena <lena@omega> | 2026-06-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-06-01 00:00:00 +0000 |
| commit | 72e37d2dac501faa300ca895c56c53eea43ae4ae (patch) | |
| tree | ca1a3f77d46f91f14b9c713f193af755f3d1fa2f /app/src/main/res/layout/item_dir.xml | |
| parent | 7e04941bccb2683f8a6e3ee38a99c50129234dd1 (diff) | |
| download | rsend-72e37d2dac501faa300ca895c56c53eea43ae4ae.tar.gz | |
app: add a folder picker for local paths0.1.0
Typing absolute paths is error-prone; let the user browse real
filesystem folders and pick one. Stays on real paths (no SAF) so
rsync keeps operating on POSIX paths.
Diffstat (limited to 'app/src/main/res/layout/item_dir.xml')
| -rw-r--r-- | app/src/main/res/layout/item_dir.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_dir.xml b/app/src/main/res/layout/item_dir.xml new file mode 100644 index 0000000..651224c --- /dev/null +++ b/app/src/main/res/layout/item_dir.xml @@ -0,0 +1,27 @@ +<?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:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginEnd="@dimen/space_m" + android:src="@drawable/ic_folder" + android:contentDescription="@null" /> + + <TextView + android:id="@+id/dirName" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:maxLines="1" + android:ellipsize="end" + android:textAppearance="@style/TextAppearance.Rsend.Title" /> +</LinearLayout> |