From 2fde8d8c2aa154d1636f1c2ad8d1580b1e57ea92 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Wed, 7 Apr 2021 21:31:47 +0800 Subject: [PATCH] Use ConstraintLayut to improve UI of storage items - To prevent title overlaps summary. - Align text base line of title & summary. - Remove deprecated attribute - fadingEdge. Bug: 184710253 Test: manual visual Change-Id: I2a21ec31b059b89450ce40daee9ed28064ee8666 --- res/layout/storage_item.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/res/layout/storage_item.xml b/res/layout/storage_item.xml index cefb399ec2b..6de2d510b17 100644 --- a/res/layout/storage_item.xml +++ b/res/layout/storage_item.xml @@ -15,6 +15,7 @@ --> - + android:layout_height="wrap_content"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@android:id/summary"/> + app:layout_constraintBaseline_toBaselineOf="@android:id/title" + app:layout_constraintEnd_toEndOf="parent"/> - +