diff --git a/ui/src/main/res/layout/tunnel_editor_fragment.xml b/ui/src/main/res/layout/tunnel_editor_fragment.xml
index 27d898ef..214f3b5a 100644
--- a/ui/src/main/res/layout/tunnel_editor_fragment.xml
+++ b/ui/src/main/res/layout/tunnel_editor_fragment.xml
@@ -25,26 +25,26 @@
+ android:id="@+id/main_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/colorBackground">
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
@@ -117,19 +117,19 @@
android:onClick="@{() -> config.interface.generateKeyPair()}"
android:text="@string/generate"
android:textColor="?attr/colorSecondary"
- app:layout_constraintHorizontal_weight="0.3"
app:layout_constraintBaseline_toBaselineOf="@id/private_key_text_layout"
app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_weight="0.3"
app:layout_constraintStart_toEndOf="@id/private_key_text_layout"
app:rippleColor="?attr/colorSecondary" />
@@ -138,10 +138,10 @@
android:id="@+id/public_key_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:hint="@string/hint_generated"
android:editable="false"
android:ellipsize="end"
android:focusable="false"
+ android:hint="@string/hint_generated"
android:onClick="@{ClipboardUtils::copyTextView}"
android:singleLine="true"
android:text="@{config.interface.publicKey}" />
@@ -153,9 +153,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="4dp"
+ app:layout_constraintEnd_toStartOf="@id/listen_port_label_layout"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintHorizontal_weight="0.7"
- app:layout_constraintEnd_toStartOf="@id/listen_port_label_layout"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/public_key_label_layout">
@@ -171,14 +171,14 @@
+ app:layout_constraintHorizontal_weight="0.3"
+ app:layout_constraintStart_toEndOf="@id/addresses_label_layout"
+ app:layout_constraintTop_toBottomOf="@id/public_key_label_layout">
@@ -218,17 +218,17 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="@string/mtu"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="0.3"
app:layout_constraintStart_toEndOf="@id/dns_servers_label_layout"
- app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/dns_servers_label_layout">
@@ -253,14 +253,15 @@
+
-
+
diff --git a/ui/src/main/res/layout/tunnel_editor_peer.xml b/ui/src/main/res/layout/tunnel_editor_peer.xml
index 896d2381..57b04f48 100644
--- a/ui/src/main/res/layout/tunnel_editor_peer.xml
+++ b/ui/src/main/res/layout/tunnel_editor_peer.xml
@@ -20,10 +20,10 @@
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="@id/peer_title" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/peer_title">
+ app:filter="@{KeyInputFilter.newInstance()}" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/public_key_label_layout">
+ android:text="@={item.preSharedKey}" />
+ app:layout_constraintTop_toBottomOf="@id/pre_shared_key_label_layout">
+ android:inputType="textNoSuggestions|textVisiblePassword"
+ android:text="@={item.endpoint}" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/endpoint_label_layout">
+ android:inputType="textNoSuggestions|textVisiblePassword"
+ android:text="@={item.allowedIps}" />
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/allowed_ips_label_layout" />