diff options
author | 2021-03-25 19:03:47 +0000 | |
---|---|---|
committer | 2021-03-25 19:03:47 +0000 | |
commit | e5aad9d727c322f4c37d10afa4aa278e7f55b55e (patch) | |
tree | 81fb5a7b58cd49ec95a90d2a2e93a505cba5b96e /res/layout | |
parent | d729ed9c987754b16e8531587f3a7887fedb730e (diff) | |
parent | a40d9e5e99d7ef536bf25b53c3b681158774e45d (diff) |
add cardview for round edges am: a40d9e5e99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/13955191
Change-Id: Ia2c863effdfb135fc73aa07eb25c69473e6d9d4c
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> |