From 9df8e5e239a298d1b17ce2486af5277b53c35411 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Sep 2020 16:28:13 +0200 Subject: tv: add ugly deletion mode Signed-off-by: Jason A. Donenfeld --- ui/src/main/res/layout/tv_activity.xml | 17 +++++++++++++++++ ui/src/main/res/layout/tv_tunnel_list_item.xml | 22 ++++++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) (limited to 'ui/src/main/res/layout') diff --git a/ui/src/main/res/layout/tv_activity.xml b/ui/src/main/res/layout/tv_activity.xml index 4ca5f839..8a544258 100644 --- a/ui/src/main/res/layout/tv_activity.xml +++ b/ui/src/main/res/layout/tv_activity.xml @@ -4,9 +4,14 @@ xmlns:tools="http://schemas.android.com/tools"> + + + @@ -43,8 +48,20 @@ android:layout_height="wrap_content" android:layout_margin="16dp" android:text="@string/create_from_file" + android:visibility="@{isDeleting ? View.GONE : View.VISIBLE}" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" /> + + + \ No newline at end of file diff --git a/ui/src/main/res/layout/tv_tunnel_list_item.xml b/ui/src/main/res/layout/tv_tunnel_list_item.xml index 4d2a943c..c5dd6c37 100644 --- a/ui/src/main/res/layout/tv_tunnel_list_item.xml +++ b/ui/src/main/res/layout/tv_tunnel_list_item.xml @@ -5,10 +5,16 @@ + + + + @@ -18,15 +24,16 @@ type="com.wireguard.android.model.ObservableTunnel" /> + + app:cardCornerRadius="12dp"> + + + -- cgit v1.2.3