summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res/layout/tv_activity.xml
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-09-22 20:37:41 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-09-22 23:54:38 +0200
commit03189e7b20b326b83ab484c436214f1610334c73 (patch)
tree969ce8414b0cbabf666bc5e11fc48bac634dd4c4 /ui/src/main/res/layout/tv_activity.xml
parent10bb413187cb205e3e294f3e0b27fe0d31a959f6 (diff)
tv: add text when there are no tunnels
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/res/layout/tv_activity.xml')
-rw-r--r--ui/src/main/res/layout/tv_activity.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/ui/src/main/res/layout/tv_activity.xml b/ui/src/main/res/layout/tv_activity.xml
index 75fe6490..5e29ed5f 100644
--- a/ui/src/main/res/layout/tv_activity.xml
+++ b/ui/src/main/res/layout/tv_activity.xml
@@ -35,8 +35,8 @@
android:layout_marginTop="5dp"
app:cardElevation="2dp"
app:contentPadding="0dp"
- app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
@@ -54,6 +54,7 @@
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:orientation="horizontal"
+ android:visibility="@{tunnels.isEmpty() ? View.GONE : View.VISIBLE}"
app:configurationHandler="@{rowConfigurationHandler}"
app:items="@{tunnels}"
app:layout="@{@layout/tv_tunnel_list_item}"
@@ -65,6 +66,19 @@
tools:itemCount="10"
tools:listitem="@layout/tv_tunnel_list_item" />
+ <TextView
+ style="@style/TextAppearance.MaterialComponents.Headline4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="@string/tv_add_tunnel_get_started"
+ android:visibility="@{tunnels.isEmpty() ? View.VISIBLE : View.GONE}"
+ app:layout_constraintBottom_toTopOf="@id/delete_button"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/banner_logo"
+ tools:visibility="gone" />
+
<com.google.android.material.button.MaterialButton
android:id="@+id/import_button"
style="@style/Widget.MaterialComponents.Button"