From ec4f3146d6cb072424567a26a94bf7bc2fec4edc Mon Sep 17 00:00:00 2001 From: Joey Date: Fri, 6 Apr 2018 22:27:18 +0200 Subject: [PATCH] Updater: Minor UI improvements Change-Id: I5028aaa154991806ab911be0119fed0836e6851b --- res/drawable/ic_cancel.xml | 9 -- res/drawable/ic_delete_black.xml | 9 -- res/drawable/ic_download.xml | 10 -- res/drawable/ic_info.xml | 9 -- res/drawable/ic_pause.xml | 10 -- res/drawable/ic_resume.xml | 10 -- res/layout/activity_updates.xml | 8 +- res/layout/update_item_view.xml | 132 +++++++----------- res/values/strings.xml | 18 +-- .../updater/ExportUpdateService.java | 2 +- .../lineageos/updater/UpdatesListAdapter.java | 96 +++++-------- 11 files changed, 98 insertions(+), 215 deletions(-) delete mode 100644 res/drawable/ic_cancel.xml delete mode 100644 res/drawable/ic_delete_black.xml delete mode 100644 res/drawable/ic_download.xml delete mode 100644 res/drawable/ic_info.xml delete mode 100644 res/drawable/ic_pause.xml delete mode 100644 res/drawable/ic_resume.xml diff --git a/res/drawable/ic_cancel.xml b/res/drawable/ic_cancel.xml deleted file mode 100644 index 7d2b57eb..00000000 --- a/res/drawable/ic_cancel.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/res/drawable/ic_delete_black.xml b/res/drawable/ic_delete_black.xml deleted file mode 100644 index 125a58f2..00000000 --- a/res/drawable/ic_delete_black.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/res/drawable/ic_download.xml b/res/drawable/ic_download.xml deleted file mode 100644 index a3932dda..00000000 --- a/res/drawable/ic_download.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/res/drawable/ic_info.xml b/res/drawable/ic_info.xml deleted file mode 100644 index cf53e145..00000000 --- a/res/drawable/ic_info.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/res/drawable/ic_pause.xml b/res/drawable/ic_pause.xml deleted file mode 100644 index d060a4c7..00000000 --- a/res/drawable/ic_pause.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/res/drawable/ic_resume.xml b/res/drawable/ic_resume.xml deleted file mode 100644 index 078ab9d1..00000000 --- a/res/drawable/ic_resume.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/res/layout/activity_updates.xml b/res/layout/activity_updates.xml index 8be4d6ee..2671d53b 100644 --- a/res/layout/activity_updates.xml +++ b/res/layout/activity_updates.xml @@ -43,7 +43,7 @@ android:textSize="56sp" /> @@ -62,7 +62,7 @@ android:id="@+id/header_last_check" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@id/header_build_version" + android:layout_below="@id/header_build_date" android:textColor="?android:attr/textColorPrimary" android:textSize="12sp" /> diff --git a/res/layout/update_item_view.xml b/res/layout/update_item_view.xml index c12eae19..4abfebf6 100644 --- a/res/layout/update_item_view.xml +++ b/res/layout/update_item_view.xml @@ -1,105 +1,73 @@ + android:nextFocusRight="@+id/update_action" + app:cardCornerRadius="0dp" + app:contentPadding="16dp"> - + android:layout_weight="1" + android:orientation="vertical"> - + + + + + android:paddingTop="8dp" + android:visibility="gone" + tools:progress="65" + tools:visibility="visible" /> - - - - - - + android:ellipsize="marquee" + android:singleLine="true" + tools:text="162 of 300 MB (3 minutes left) • 65%" /> + - - - - - - - - - - - - - - - - - +