diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-02 15:56:37 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-07-02 15:56:37 +0300 |
commit | 5d0b546dd6dbdb770f12a6422f6b382406341dfd (patch) | |
tree | f92789d330ab1e2618cc1eef729f6bc10ac6dd2f /app/src/main | |
parent | b9b6d73f977f2c2b26a7838d70996c2a9cd52fec (diff) |
Fix displaying labels with only a few letters
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/res/layout/item_autocomplete_label.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/layout/item_manage_label.xml | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_autocomplete_label.xml b/app/src/main/res/layout/item_autocomplete_label.xml index adfa5bd93..49b98db0b 100644 --- a/app/src/main/res/layout/item_autocomplete_label.xml +++ b/app/src/main/res/layout/item_autocomplete_label.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -12,11 +13,15 @@ android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacer_1x" + android:layout_marginBottom="@dimen/spacer_1x" android:clickable="false" android:ellipsize="middle" android:focusable="false" + android:padding="@dimen/spacer_1x" + app:ensureMinTouchTargetSize="false" tools:backgroundTint="@color/board_default_color" - tools:text="@tools:sample/lorem" + tools:text="@tools:sample/cities" tools:textColor="@android:color/white" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_manage_label.xml b/app/src/main/res/layout/item_manage_label.xml index fc5c86a07..7bc7a7194 100644 --- a/app/src/main/res/layout/item_manage_label.xml +++ b/app/src/main/res/layout/item_manage_label.xml @@ -17,7 +17,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" + android:layout_marginStart="@dimen/spacer_1hx" + android:layout_marginTop="@dimen/spacer_1x" + android:layout_marginEnd="@dimen/spacer_1hx" + android:layout_marginBottom="@dimen/spacer_1x" android:ellipsize="middle" + app:ensureMinTouchTargetSize="false" tools:text="@tools:sample/cities" /> </LinearLayout> |