From 37abb77b42eb63892b042e5fd158fd80e0a0ccf0 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 25 Nov 2021 15:37:35 +0100 Subject: shrink text size on location selection button, if there's not enough space on small screens --- app/src/main/res/layout/v_location_button.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/res/layout/v_location_button.xml b/app/src/main/res/layout/v_location_button.xml index 8cba9d70..11410c62 100644 --- a/app/src/main/res/layout/v_location_button.xml +++ b/app/src/main/res/layout/v_location_button.xml @@ -1,6 +1,7 @@ @@ -42,7 +43,10 @@ android:maxLines="1" android:ellipsize="end" android:layout_height="wrap_content" - android:layout_width="wrap_content" + android:layout_width="match_parent" + app:autoSizeTextType="uniform" + android:gravity="center_vertical" + app:autoSizeMinTextSize="15sp" android:layout_toEndOf="@id/recommended_icn" android:layout_toRightOf="@+id/recommended_icn" android:layout_toLeftOf="@+id/bridge_icn" -- cgit v1.2.3