From 38cb184cf8b199ab468986f6a74159f8d4059a2a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 26 May 2022 06:40:17 +0530 Subject: ui: reorder constraints to fix detail fragment overlap Signed-off-by: Harsh Shandilya --- ui/src/main/res/layout/tunnel_detail_fragment.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ui/src') diff --git a/ui/src/main/res/layout/tunnel_detail_fragment.xml b/ui/src/main/res/layout/tunnel_detail_fragment.xml index 8e34f082..7a962509 100644 --- a/ui/src/main/res/layout/tunnel_detail_fragment.xml +++ b/ui/src/main/res/layout/tunnel_detail_fragment.xml @@ -221,6 +221,7 @@ 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" @@ -229,6 +230,7 @@ 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" @@ -254,6 +256,7 @@ 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" @@ -261,6 +264,7 @@ 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" @@ -276,8 +280,8 @@ android:labelFor="@+id/applications_text" android:text="@string/applications" android:visibility="@{config.interface.includedApplications.isEmpty() && config.interface.excludedApplications.isEmpty() ? android.view.View.GONE : android.view.View.VISIBLE}" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/listen_port_text" /> + app:layout_constraintBottom_toTopOf="@id/applications_text" + app:layout_constraintStart_toStartOf="parent" /> -- cgit v1.2.3