aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout/tunnel_detail_peer.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-03-09 19:06:11 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-03-09 19:24:27 +0530
commit7d48bef70a56d4370856eedab619b1f83ac3d0d0 (patch)
tree76fd859578e499cd3a8fd2f402652530ea36a72d /app/src/main/res/layout/tunnel_detail_peer.xml
parentEnable nonnull generation for tunnel module (diff)
downloadwireguard-android-7d48bef70a56d4370856eedab619b1f83ac3d0d0.tar.xz
wireguard-android-7d48bef70a56d4370856eedab619b1f83ac3d0d0.zip
Rename app module to ui
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/layout/tunnel_detail_peer.xml')
-rw-r--r--app/src/main/res/layout/tunnel_detail_peer.xml112
1 files changed, 0 insertions, 112 deletions
diff --git a/app/src/main/res/layout/tunnel_detail_peer.xml b/app/src/main/res/layout/tunnel_detail_peer.xml
deleted file mode 100644
index 181a4a21..00000000
--- a/app/src/main/res/layout/tunnel_detail_peer.xml
+++ /dev/null
@@ -1,112 +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.util.ClipboardUtils" />
-
- <variable
- name="item"
- type="com.wireguard.config.Peer" />
- </data>
-
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="4dp"
- android:layout_marginEnd="8dp"
- android:layout_marginStart="8dp"
- android:layout_marginTop="4dp"
- android:background="?attr/colorBackground"
- app:cardCornerRadius="4dp"
- app:cardElevation="2dp"
- app:contentPadding="8dp">
-
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <TextView
- android:id="@+id/peer_title"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:text="@string/peer" />
-
- <TextView
- android:id="@+id/public_key_label"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/peer_title"
- android:layout_marginTop="8dp"
- android:labelFor="@+id/public_key_text"
- android:text="@string/public_key" />
-
- <TextView
- android:id="@+id/public_key_text"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/public_key_label"
- android:contentDescription="@string/public_key_description"
- android:ellipsize="end"
- android:maxLines="1"
- android:onClick="@{ClipboardUtils::copyTextView}"
- android:text="@{item.publicKey.toBase64}" />
-
- <TextView
- android:id="@+id/allowed_ips_label"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/public_key_text"
- android:layout_marginTop="8dp"
- android:labelFor="@+id/allowed_ips_text"
- android:text="@string/allowed_ips" />
-
- <TextView
- android:id="@+id/allowed_ips_text"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/allowed_ips_label"
- android:text="@{item.allowedIps}" />
-
- <TextView
- android:id="@+id/endpoint_label"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/allowed_ips_text"
- android:layout_marginTop="8dp"
- android:labelFor="@+id/endpoint_text"
- android:text="@string/endpoint" />
-
- <TextView
- android:id="@+id/endpoint_text"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/endpoint_label"
- android:text="@{item.endpoint}" />
-
- <TextView
- android:id="@+id/transfer_label"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/endpoint_text"
- android:layout_marginTop="8dp"
- android:labelFor="@+id/transfer_text"
- android:text="@string/transfer"
- android:visibility="gone" />
-
- <TextView
- android:id="@+id/transfer_text"
- style="?android:attr/textAppearanceMedium"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/transfer_label"
- android:visibility="gone" />
- </RelativeLayout>
- </androidx.cardview.widget.CardView>
-</layout>