From bde4c0a648d06b1b0c5d2e32da8f852a2ddf0277 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 4 Sep 2021 18:51:30 -0400 Subject: [PATCH] Avoid multiline library badges Related to #5725 --- app/src/main/res/layout/source_comfortable_grid_item.xml | 3 +++ app/src/main/res/layout/source_compact_grid_item.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/res/layout/source_comfortable_grid_item.xml b/app/src/main/res/layout/source_comfortable_grid_item.xml index 5c62463dd..7e9384ace 100644 --- a/app/src/main/res/layout/source_comfortable_grid_item.xml +++ b/app/src/main/res/layout/source_comfortable_grid_item.xml @@ -47,6 +47,7 @@ android:background="?attr/colorTertiary" android:paddingStart="3dp" android:paddingTop="1dp" + android:maxLines="1" android:paddingEnd="3dp" android:paddingBottom="1dp" android:text="@string/local_source_badge" @@ -62,6 +63,7 @@ android:background="?attr/colorTertiary" android:paddingStart="3dp" android:paddingTop="1dp" + android:maxLines="1" android:paddingEnd="3dp" android:paddingBottom="1dp" android:textColor="?attr/colorOnTertiary" @@ -78,6 +80,7 @@ android:paddingStart="3dp" android:paddingTop="1dp" android:paddingEnd="3dp" + android:maxLines="1" android:paddingBottom="1dp" android:textColor="?attr/colorOnSecondary" android:visibility="gone" diff --git a/app/src/main/res/layout/source_compact_grid_item.xml b/app/src/main/res/layout/source_compact_grid_item.xml index 90fcef2b6..daa01553a 100644 --- a/app/src/main/res/layout/source_compact_grid_item.xml +++ b/app/src/main/res/layout/source_compact_grid_item.xml @@ -48,6 +48,7 @@ android:paddingTop="1dp" android:paddingEnd="3dp" android:paddingBottom="1dp" + android:maxLines="1" android:text="@string/local_source_badge" android:textColor="?attr/colorOnTertiary" android:visibility="gone" @@ -61,6 +62,7 @@ android:background="?attr/colorTertiary" android:paddingStart="3dp" android:paddingTop="1dp" + android:maxLines="1" android:paddingEnd="3dp" android:paddingBottom="1dp" android:textColor="?attr/colorOnTertiary" @@ -78,6 +80,7 @@ android:paddingTop="1dp" android:paddingEnd="3dp" android:paddingBottom="1dp" + android:maxLines="1" android:textColor="?attr/colorOnSecondary" android:visibility="gone" tools:text="120"