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.xml17
1 files changed, 17 insertions, 0 deletions
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,10 +4,15 @@
xmlns:tools="http://schemas.android.com/tools">
<data>
+ <import type="android.view.View" />
<import type="com.wireguard.android.model.ObservableTunnel" />
<variable
+ name="isDeleting"
+ type="androidx.databinding.ObservableBoolean" />
+
+ <variable
name="tunnels"
type="com.wireguard.android.databinding.ObservableKeyedArrayList&lt;String, ObservableTunnel&gt;" />
@@ -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" />
+ <!-- TODO: Text should probably be a drawable, right? -->
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/delete_button"
+ style="?attr/textAppearanceButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:text="@{isDeleting ? &quot;⏎&quot; : &quot;🗑&quot;}"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
</androidx.constraintlayout.widget.ConstraintLayout>
</layout> \ No newline at end of file