From f8e29cc2ca298ffb798a579e7035f5001979fe8b Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Thu, 19 Oct 2023 13:18:29 +0530 Subject: [PATCH] Make ui improvements in update list - Available updates background is same as toolbar - Update action button position has been changed which fixes the issue of text getting hidden when button text is too long in some translations - Other elements in update card have been adjusted too to make it look better with new position of button --- res/layout/activity_updates.xml | 2 +- res/layout/update_item_view.xml | 183 ++++++++++++++++---------------- 2 files changed, 94 insertions(+), 91 deletions(-) diff --git a/res/layout/activity_updates.xml b/res/layout/activity_updates.xml index 76497f33..8305ba1e 100644 --- a/res/layout/activity_updates.xml +++ b/res/layout/activity_updates.xml @@ -118,7 +118,7 @@ android:paddingBottom="24dp" android:paddingStart="16dp" android:textSize="16sp" - android:background="?attr/colorPrimary" + android:background="@color/toolbar_collapsed" android:text="@string/available_updates" android:textColor="?android:textColorPrimary" /> diff --git a/res/layout/update_item_view.xml b/res/layout/update_item_view.xml index 4928b800..c50f6af8 100644 --- a/res/layout/update_item_view.xml +++ b/res/layout/update_item_view.xml @@ -12,105 +12,56 @@ app:contentPadding="16dp"> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:orientation="vertical"> - - - - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:weightSum="1" + android:baselineAligned="false"> - + android:layout_weight="1" + android:orientation="vertical"> - - - - - - - - + android:alpha="0.87" + android:drawablePadding="8dp" + android:maxLines="1" + android:paddingBottom="8sp" + android:textColor="?android:attr/textColorPrimary" + android:textSize="16sp" + tools:text="LineageOS 15.1" /> - - - - + android:maxLines="1" + android:textSize="14sp" + tools:text="29 February 2018" /> + -