From 284ad03ebffe41006a7a33ede0199a4d4f53abdf Mon Sep 17 00:00:00 2001 From: SlipkHunter Date: Tue, 28 Jun 2022 12:58:55 -0300 Subject: ui: add barrier to fix detail fragment overlap When listen port and MTU are hidden, we need a barrier here. Signed-off-by: SlipkHunter Signed-off-by: Harsh Shandilya --- ui/src/main/res/layout/tunnel_detail_fragment.xml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'ui/src/main/res/layout') diff --git a/ui/src/main/res/layout/tunnel_detail_fragment.xml b/ui/src/main/res/layout/tunnel_detail_fragment.xml index 7a962509..164fabf0 100644 --- a/ui/src/main/res/layout/tunnel_detail_fragment.xml +++ b/ui/src/main/res/layout/tunnel_detail_fragment.xml @@ -221,7 +221,6 @@ style="@style/DetailText" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" android:contentDescription="@string/listen_port" android:nextFocusRight="@id/mtu_text" android:nextFocusUp="@id/dns_search_domains_text" @@ -230,7 +229,6 @@ android:onClick="@{ClipboardUtils::copyTextView}" android:text="@{config.interface.listenPort}" android:visibility="@{!config.interface.listenPort.isPresent() ? android.view.View.GONE : android.view.View.VISIBLE}" - app:layout_constraintBottom_toTopOf="@id/applications_label" app:layout_constraintEnd_toStartOf="@id/mtu_label" app:layout_constraintHorizontal_weight="0.5" app:layout_constraintStart_toStartOf="parent" @@ -256,7 +254,6 @@ style="@style/DetailText" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" android:contentDescription="@string/mtu" android:nextFocusLeft="@id/listen_port_text" android:nextFocusUp="@id/dns_servers_text" @@ -264,7 +261,6 @@ android:onClick="@{ClipboardUtils::copyTextView}" android:text="@{config.interface.mtu}" android:visibility="@{!config.interface.mtu.isPresent() ? android.view.View.GONE : android.view.View.VISIBLE}" - app:layout_constraintBottom_toTopOf="@id/applications_label" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_weight="0.5" app:layout_constraintStart_toEndOf="@id/listen_port_label" @@ -272,6 +268,13 @@ app:layout_constraintTop_toBottomOf="@+id/mtu_label" tools:text="1500" /> + + @@ -315,4 +318,4 @@ tools:ignore="UselessLeaf" /> - + \ No newline at end of file -- cgit v1.2.3