From 21afef9566a48d39113e84916d05d9f96272fdeb Mon Sep 17 00:00:00 2001 From: hasibprince Date: Sat, 8 Oct 2022 00:11:57 +0600 Subject: [PATCH 1/3] auto text sizing applied to installed button --- app/src/main/res/layout/application_list_item.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/application_list_item.xml b/app/src/main/res/layout/application_list_item.xml index 99b2b098e..c0cc8a8d3 100644 --- a/app/src/main/res/layout/application_list_item.xml +++ b/app/src/main/res/layout/application_list_item.xml @@ -133,11 +133,14 @@ android:layout_height="40dp" android:text="@string/install" android:textAllCaps="true" - android:visibility="invisible" - android:textSize="13sp" + android:visibility="visible" + app:autoSizeTextType="uniform" + app:autoSizeMinTextSize="5sp" + android:lines="1" app:cornerRadius="4dp" app:layout_constraintRight_toRightOf="parent" - app:layout_constraintTop_toTopOf="@+id/app_title" /> + app:layout_constraintTop_toTopOf="@+id/app_title" + tools:text="Installing"/> Date: Sun, 9 Oct 2022 01:52:22 +0600 Subject: [PATCH 2/3] intitial visibility changed of the install button --- app/src/main/res/layout/application_list_item.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/application_list_item.xml b/app/src/main/res/layout/application_list_item.xml index c0cc8a8d3..b06191876 100644 --- a/app/src/main/res/layout/application_list_item.xml +++ b/app/src/main/res/layout/application_list_item.xml @@ -133,7 +133,7 @@ android:layout_height="40dp" android:text="@string/install" android:textAllCaps="true" - android:visibility="visible" + android:visibility="invisible" app:autoSizeTextType="uniform" app:autoSizeMinTextSize="5sp" android:lines="1" -- GitLab From 7ea6244e85d6e847f32afa96a4b03933cda81ff1 Mon Sep 17 00:00:00 2001 From: hasibprince Date: Wed, 12 Oct 2022 15:46:37 +0600 Subject: [PATCH 3/3] string is used from string resources --- app/src/main/res/layout/application_list_item.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/application_list_item.xml b/app/src/main/res/layout/application_list_item.xml index b06191876..c73e70a81 100644 --- a/app/src/main/res/layout/application_list_item.xml +++ b/app/src/main/res/layout/application_list_item.xml @@ -140,7 +140,7 @@ app:cornerRadius="4dp" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="@+id/app_title" - tools:text="Installing"/> + tools:text="@string/installing"/>