From 202d23426a80f1c2830b9ad86f730256cdbdeff7 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Wed, 29 May 2019 16:35:02 +0200 Subject: [PATCH] Fixed update cards having their text resized --- .../main/res/layout/include_update_card.xml | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/app/src/main/res/layout/include_update_card.xml b/app/src/main/res/layout/include_update_card.xml index c40b531ac..6c4767fd7 100644 --- a/app/src/main/res/layout/include_update_card.xml +++ b/app/src/main/res/layout/include_update_card.xml @@ -90,64 +90,59 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="8dp" - android:maxLines="1" + style="@style/Widget.Text.Emphasize" android:paddingTop="3dp" android:paddingBottom="3dp" android:text="@{text}" - android:textAppearance="?android:attr/textAppearanceMedium" - app:autoSizeMinTextSize="1sp" - app:autoSizeTextType="uniform" + android:maxLines="2" app:layout_constraintBottom_toTopOf="@+id/current_version" app:layout_constraintEnd_toStartOf="@+id/install" app:layout_constraintStart_toEndOf="@+id/status_icon" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" - tools:text="Magisk is up to date" /> + tools:text="@tools:sample/lorem/random" /> + tools:text="@tools:sample/lorem/random" /> + tools:text="@tools:sample/lorem/random" /> + tools:text="@tools:sample/lorem/random" />