summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res/layout/tv_activity.xml
diff options
context:
space:
mode:
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"