From c19f0dc5e6089d50a9a983fd4dba95a54ebd220a Mon Sep 17 00:00:00 2001
From: Kaarel Kaljurand <kaljurand@gmail.com>
Date: Sun, 3 Mar 2024 23:54:16 +0100
Subject: [PATCH] Improve the display of "Recognition services" list,

especially if the service name is very long.
---
 app/src/main/res/layout/list_item_recservice.xml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/app/src/main/res/layout/list_item_recservice.xml b/app/src/main/res/layout/list_item_recservice.xml
index 72a89f5b..637dcba6 100644
--- a/app/src/main/res/layout/list_item_recservice.xml
+++ b/app/src/main/res/layout/list_item_recservice.xml
@@ -12,7 +12,6 @@
         android:layout_alignParentStart="true"
         android:layout_alignParentTop="true"
         android:layout_marginEnd="@dimen/layoutMargin4dp"
-        android:layout_marginBottom="@dimen/layoutMargin4dp"
         android:adjustViewBounds="true"
         android:contentDescription="@string/cdServiceIcon"
         android:maxWidth="32dp"
@@ -24,9 +23,11 @@
         android:id="@+id/service"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_alignBottom="@id/serviceIcon"
+        android:layout_alignParentTop="true"
         android:layout_toEndOf="@+id/serviceIcon"
-        android:padding="@dimen/layoutMargin4dp"
+        android:paddingStart="@dimen/layoutMargin4dp"
+        android:paddingEnd="@dimen/layoutMargin4dp"
+        android:paddingBottom="@dimen/layoutMargin4dp"
         android:textAppearance="?android:attr/textAppearanceMedium"
         android:textColor="?android:textColorPrimary"
         tools:text="@string/labelRecognitionServiceWs" />
@@ -35,7 +36,8 @@
         android:id="@+id/desc"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_below="@+id/serviceIcon"
+        android:layout_below="@+id/service"
+        android:layout_toEndOf="@+id/serviceIcon"
         android:padding="@dimen/layoutMargin4dp"
         android:textAppearance="?android:attr/textAppearanceSmall"
         android:textColor="?android:textColorSecondary"