Skip to content

Commit c19f0dc

Browse files
committedMar 3, 2024
Improve the display of "Recognition services" list,
especially if the service name is very long.
1 parent ac10d67 commit c19f0dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎app/src/main/res/layout/list_item_recservice.xml

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
android:layout_alignParentStart="true"
1313
android:layout_alignParentTop="true"
1414
android:layout_marginEnd="@dimen/layoutMargin4dp"
15-
android:layout_marginBottom="@dimen/layoutMargin4dp"
1615
android:adjustViewBounds="true"
1716
android:contentDescription="@string/cdServiceIcon"
1817
android:maxWidth="32dp"
@@ -24,9 +23,11 @@
2423
android:id="@+id/service"
2524
android:layout_width="wrap_content"
2625
android:layout_height="wrap_content"
27-
android:layout_alignBottom="@id/serviceIcon"
26+
android:layout_alignParentTop="true"
2827
android:layout_toEndOf="@+id/serviceIcon"
29-
android:padding="@dimen/layoutMargin4dp"
28+
android:paddingStart="@dimen/layoutMargin4dp"
29+
android:paddingEnd="@dimen/layoutMargin4dp"
30+
android:paddingBottom="@dimen/layoutMargin4dp"
3031
android:textAppearance="?android:attr/textAppearanceMedium"
3132
android:textColor="?android:textColorPrimary"
3233
tools:text="@string/labelRecognitionServiceWs" />
@@ -35,7 +36,8 @@
3536
android:id="@+id/desc"
3637
android:layout_width="wrap_content"
3738
android:layout_height="wrap_content"
38-
android:layout_below="@+id/serviceIcon"
39+
android:layout_below="@+id/service"
40+
android:layout_toEndOf="@+id/serviceIcon"
3941
android:padding="@dimen/layoutMargin4dp"
4042
android:textAppearance="?android:attr/textAppearanceSmall"
4143
android:textColor="?android:textColorSecondary"

0 commit comments

Comments
 (0)
Failed to load comments.