From 8673efd1cd578af3b1a7a19b88c714e43cd78342 Mon Sep 17 00:00:00 2001 From: johan12345 Date: Wed, 27 May 2020 21:05:37 +0200 Subject: [PATCH] favorites view: limit length of text fields --- app/src/main/res/layout/item_favorite.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/res/layout/item_favorite.xml b/app/src/main/res/layout/item_favorite.xml index a4b40f92..0c279248 100644 --- a/app/src/main/res/layout/item_favorite.xml +++ b/app/src/main/res/layout/item_favorite.xml @@ -34,10 +34,12 @@ android:id="@+id/textView2" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginEnd="8dp" android:ellipsize="end" android:maxLines="1" android:text="@{item.charger.address.toString()}" android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" + app:layout_constraintEnd_toStartOf="@+id/textView7" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView15" tools:text="Beispielstraße 10, 12345 Berlin" /> @@ -46,10 +48,12 @@ android:id="@+id/textView3" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginEnd="8dp" android:ellipsize="end" android:maxLines="1" android:text="@{item.charger.formatChargepoints()}" android:textAppearance="@style/TextAppearance.MaterialComponents.Caption" + app:layout_constraintEnd_toStartOf="@+id/textView7" app:layout_constraintStart_toStartOf="@+id/textView2" app:layout_constraintTop_toBottomOf="@+id/textView2" tools:text="2x Typ 2 22 kW" />