diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index fef6f59d..4dfad4fa 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -21,7 +21,7 @@
+ android:label="@string/add_activity_title" />
diff --git a/app/src/main/res/drawable/ic_action_delete_black.xml b/app/src/main/res/drawable/ic_action_delete_black.xml
new file mode 100644
index 00000000..c3e906d5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_action_delete_black.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/layout-land/config_activity.xml b/app/src/main/res/layout-land/config_activity.xml
index aa310a43..72792af5 100644
--- a/app/src/main/res/layout-land/config_activity.xml
+++ b/app/src/main/res/layout-land/config_activity.xml
@@ -17,15 +17,11 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
- android:background="?android:attr/colorPrimary"
- android:paddingEnd="0dp"
- android:paddingStart="4dp"
tools:ignore="InconsistentLayout">
diff --git a/app/src/main/res/layout/config_activity.xml b/app/src/main/res/layout/config_activity.xml
index d67e64bc..0f21e2e8 100644
--- a/app/src/main/res/layout/config_activity.xml
+++ b/app/src/main/res/layout/config_activity.xml
@@ -1,5 +1,7 @@
+ android:layout_height="match_parent"
+ tools:ignore="MergeRootFrame" />
diff --git a/app/src/main/res/layout/config_detail_fragment.xml b/app/src/main/res/layout/config_detail_fragment.xml
index b229e568..206263dc 100644
--- a/app/src/main/res/layout/config_detail_fragment.xml
+++ b/app/src/main/res/layout/config_detail_fragment.xml
@@ -1,5 +1,7 @@
-
+
@@ -13,43 +15,72 @@
android:layout_height="match_parent"
android:background="?android:attr/colorBackground">
-
+ android:orientation="vertical">
-
+ android:layout_marginBottom="4dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ android:background="?android:attr/colorBackground"
+ android:elevation="2dp"
+ android:padding="8dp">
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+ android:layout_marginBottom="4dp"
+ android:divider="@null"
+ android:orientation="vertical"
+ app:items="@{config.peers}"
+ app:layout="@{@layout/config_detail_peer}"
+ tools:ignore="UselessLeaf" />
+
diff --git a/app/src/main/res/layout/config_detail_peer.xml b/app/src/main/res/layout/config_detail_peer.xml
new file mode 100644
index 00000000..1bd1b333
--- /dev/null
+++ b/app/src/main/res/layout/config_detail_peer.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/config_edit_fragment.xml b/app/src/main/res/layout/config_edit_fragment.xml
index fa936517..86045324 100644
--- a/app/src/main/res/layout/config_edit_fragment.xml
+++ b/app/src/main/res/layout/config_edit_fragment.xml
@@ -1,6 +1,7 @@
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools">
@@ -18,149 +19,198 @@
android:layout_height="match_parent"
android:background="?android:attr/colorBackground">
-
+ android:orientation="vertical">
-
+ android:layout_marginBottom="4dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ android:background="?android:attr/colorBackground"
+ android:elevation="2dp"
+ android:padding="8dp">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+ android:divider="@null"
+ android:orientation="vertical"
+ app:items="@{config.peers}"
+ app:layout="@{@layout/config_edit_peer}"
+ tools:ignore="UselessLeaf" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_marginBottom="4dp"
+ android:layout_marginEnd="4dp"
+ android:layout_marginStart="4dp"
+ android:onClick="@{() -> config.addPeer()}"
+ android:text="@string/add_peer" />
+
diff --git a/app/src/main/res/layout/config_edit_peer.xml b/app/src/main/res/layout/config_edit_peer.xml
new file mode 100644
index 00000000..6bb13047
--- /dev/null
+++ b/app/src/main/res/layout/config_edit_peer.xml
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 9397dcf3..7c707f11 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -5,22 +5,28 @@
- %d configurations selected
Add
+ New WireGuard configuration
+ Add peer
+ Addresses
+ Allowed IPs
WireGuard
- Configuration name
Delete
Disabled
DNS servers
Edit
- Add WireGuard Configuration
Enabled
+ Endpoint
Generate
(auto)
(generated)
- (optional)
(random)
+ Interface
Listen port
Loading
MTU
+ Name
+ Peer
+ Persistent keepalive
No configuration selected
Primary configuration
This configuration will be controlled by the quick settings tile