From d66e927f49d23e163d4e0521ac36a1b5baa96e2a Mon Sep 17 00:00:00 2001 From: rocka Date: Mon, 14 Aug 2017 18:04:53 +0800 Subject: [PATCH] ui: use CardView for available packages --- app/src/main/res/layout/content_main.xml | 7 +- app/src/main/res/layout/item_rom_package.xml | 110 ++++++++++--------- 2 files changed, 63 insertions(+), 54 deletions(-) diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index 907b9a5..e430a56 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -70,7 +70,6 @@ android:layout_height="wrap_content" android:layout_marginEnd="0dp" android:layout_marginStart="0dp" - android:layout_marginTop="0dp" android:clickable="true" android:focusable="true" android:foreground="?attr/selectableItemBackground" @@ -117,13 +116,15 @@ android:layout_width="0dp" android:layout_height="0dp" android:layout_marginBottom="0dp" - android:layout_marginTop="8dp" + android:clipToPadding="false" + android:paddingTop="8dp" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/text_available_packages" /> + app:layout_constraintTop_toBottomOf="@+id/text_available_packages" + tools:listitem="@layout/item_rom_package" /> - + android:layout_height="wrap_content" + android:clickable="true" + android:focusable="true" + android:foreground="?attr/selectableItemBackground"> - + - + - + - - + + + + +