summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-25 15:37:35 +0100
committercyBerta <cyberta@riseup.net>2021-11-25 15:37:35 +0100
commit37abb77b42eb63892b042e5fd158fd80e0a0ccf0 (patch)
treeefd9f01881b24fb6ed183f2836cb732ac63402f0
parent57ce0635f310d1a4cd4e81b01455d8a70978003b (diff)
shrink text size on location selection button, if there's not enough space on small screens
-rw-r--r--app/src/main/res/layout/v_location_button.xml8
1 files changed, 6 insertions, 2 deletions
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 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_gravity="center_vertical"
@@ -14,7 +15,7 @@
android:layout_height="wrap_content"
android:layout_alignTop="@+id/text_location"
android:layout_alignBottom="@+id/text_location"
- android:scaleType="fitXY"
+ android:scaleType="fitCenter"
android:src="@drawable/ic_web"
android:layout_gravity="center"
/>
@@ -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"