aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout/tunnel_list_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/tunnel_list_item.xml')
-rw-r--r--app/src/main/res/layout/tunnel_list_item.xml59
1 files changed, 0 insertions, 59 deletions
diff --git a/app/src/main/res/layout/tunnel_list_item.xml b/app/src/main/res/layout/tunnel_list_item.xml
deleted file mode 100644
index 13e14fed..00000000
--- a/app/src/main/res/layout/tunnel_list_item.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
-
- <data>
-
- <import type="com.wireguard.android.model.Tunnel" />
-
- <import type="com.wireguard.android.model.Tunnel.State" />
-
- <variable
- name="collection"
- type="com.wireguard.android.util.ObservableKeyedList&lt;String, Tunnel&gt;" />
-
- <variable
- name="key"
- type="String" />
-
- <variable
- name="item"
- type="com.wireguard.android.model.Tunnel" />
-
- <variable
- name="fragment"
- type="com.wireguard.android.fragment.TunnelListFragment" />
- </data>
-
- <com.wireguard.android.widget.MultiselectableRelativeLayout
- android:id="@+id/tunnel_list_item"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/list_item_background"
- android:descendantFocusability="beforeDescendants"
- android:focusable="true"
- android:nextFocusRight="@+id/tunnel_switch"
- android:padding="16dp">
-
- <TextView
- android:id="@+id/tunnel_name"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:ellipsize="end"
- android:maxLines="1"
- android:text="@{key}" />
-
- <com.wireguard.android.widget.ToggleSwitch
- android:id="@+id/tunnel_switch"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@+id/tunnel_name"
- android:layout_alignParentEnd="true"
- android:nextFocusLeft="@+id/tunnel_list_item"
- app:checked="@{item.state == State.UP}"
- app:onBeforeCheckedChanged="@{fragment::setTunnelState}" />
- </com.wireguard.android.widget.MultiselectableRelativeLayout>
-</layout>