aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_main.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/activity_main.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/activity_main.xml')
-rw-r--r--app/src/main/res/layout/activity_main.xml98
1 files changed, 34 insertions, 64 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index d58f907..20fe99b 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -95,51 +95,6 @@
android:text="Setup" />
<LinearLayout
- android:id="@+id/rowRemote"
- style="@style/Widget.Rsend.Row"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <ImageView
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_marginEnd="@dimen/space_m"
- android:src="@drawable/ic_remote"
- android:contentDescription="@null" />
-
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.Rsend.Body"
- android:text="Remote" />
-
- <TextView
- android:id="@+id/remoteValue"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.Rsend.Caption" />
- </LinearLayout>
-
- <ImageView
- android:layout_width="20dp"
- android:layout_height="20dp"
- android:src="@drawable/ic_chevron"
- android:contentDescription="@null" />
- </LinearLayout>
-
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/stroke"
- android:layout_marginStart="40dp"
- android:background="@color/outline" />
-
- <LinearLayout
android:id="@+id/rowKey"
style="@style/Widget.Rsend.Row"
android:layout_width="match_parent"
@@ -371,6 +326,29 @@
</LinearLayout>
</LinearLayout>
+ <!-- Remotes -->
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/space_s"
+ android:layout_marginBottom="@dimen/space_s"
+ android:textAppearance="@style/TextAppearance.Rsend.SectionHeader"
+ android:text="Remotes" />
+
+ <LinearLayout
+ android:id="@+id/remotes"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
+
+ <Button
+ android:id="@+id/btnAddRemote"
+ style="@style/Widget.Rsend.Button.Secondary"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/space_m"
+ android:text="+ Add remote" />
+
<!-- Folders -->
<TextView
android:layout_width="match_parent"
@@ -386,28 +364,20 @@
android:layout_height="wrap_content"
android:orientation="vertical" />
- <LinearLayout
+ <Button
+ android:id="@+id/btnAddFolder"
+ style="@style/Widget.Rsend.Button.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal">
+ android:layout_marginBottom="@dimen/space_m"
+ android:text="+ Add folder" />
- <Button
- android:id="@+id/btnAddFolder"
- style="@style/Widget.Rsend.Button.Secondary"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:layout_marginEnd="@dimen/space_s"
- android:text="+ Add folder" />
-
- <Button
- android:id="@+id/btnLog"
- style="@style/Widget.Rsend.Button.Secondary"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="View log" />
- </LinearLayout>
+ <Button
+ android:id="@+id/btnLog"
+ style="@style/Widget.Rsend.Button.Secondary"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="View log" />
</LinearLayout>
</ScrollView>
</LinearLayout>