diff options
author | 2021-03-22 10:29:13 -0700 | |
---|---|---|
committer | 2021-03-23 09:44:50 -0700 | |
commit | a40d9e5e99d7ef536bf25b53c3b681158774e45d (patch) | |
tree | 264c7e7ba09c94d590d06c91e58b71f9053b2d0b /res/layout | |
parent | 34add8227ff993182216745d65f782f008b9dd33 (diff) |
add cardview for round edges
Fix:168244676
Test: Manual
Change-Id: Id859015622d70a4e58d03fc75edab34b4c450a65
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/item_doc_list.xml | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/res/layout/item_doc_list.xml b/res/layout/item_doc_list.xml index 0e9ddd2d2..6833ce553 100644 --- a/res/layout/item_doc_list.xml +++ b/res/layout/item_doc_list.xml @@ -15,6 +15,7 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> @@ -45,30 +46,37 @@ android:paddingEnd="16dp" android:paddingStart="@dimen/list_item_padding"> - <ImageView - android:id="@+id/icon_mime" - android:layout_width="wrap_content" + <com.google.android.material.card.MaterialCardView + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center" - android:contentDescription="@null" - android:scaleType="centerInside" /> + app:cardElevation="0dp"> - <ImageView - android:id="@+id/icon_thumb" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:contentDescription="@null" - android:scaleType="centerCrop" /> + <ImageView + android:id="@+id/icon_mime" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:contentDescription="@null" + android:scaleType="centerInside" /> - <ImageView - android:id="@+id/icon_check" - android:layout_width="@dimen/check_icon_size" - android:layout_height="@dimen/check_icon_size" - android:layout_gravity="center" - android:alpha="0" - android:contentDescription="@null" - android:scaleType="fitCenter" - android:src="@drawable/ic_check_circle" /> + <ImageView + android:id="@+id/icon_thumb" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:contentDescription="@null" + android:scaleType="centerCrop" /> + + <ImageView + android:id="@+id/icon_check" + android:layout_width="@dimen/check_icon_size" + android:layout_height="@dimen/check_icon_size" + android:layout_gravity="center" + android:alpha="0" + android:contentDescription="@null" + android:scaleType="fitCenter" + android:src="@drawable/ic_check_circle" /> + + </com.google.android.material.card.MaterialCardView> </FrameLayout> |