diff options
author | 2021-05-10 22:19:24 +0000 | |
---|---|---|
committer | 2021-05-10 22:19:24 +0000 | |
commit | bf7e9c39ae9331c9bcc43626abb7fd13705c26f6 (patch) | |
tree | 49aea13d7d71524fa8f7fa6a007a2e456515c53a /res | |
parent | 6ee49c3bb451cd852edb24b5f3ecc87b7ddc3eac (diff) | |
parent | 3d988caf675cc8360650c1dee20a0bd0b2dbcce2 (diff) |
More Material Next changes to RecyclerView items: am: 3d988caf67
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/14471680
Change-Id: Icb8583cf2e99ba7e3b580abbe691da419ff50a64
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-sw720dp/item_doc_list.xml | 5 | ||||
-rw-r--r-- | res/layout/item_dir_grid.xml | 13 | ||||
-rw-r--r-- | res/layout/item_doc_grid.xml | 13 | ||||
-rw-r--r-- | res/layout/item_doc_list.xml | 2 |
4 files changed, 20 insertions, 13 deletions
diff --git a/res/layout-sw720dp/item_doc_list.xml b/res/layout-sw720dp/item_doc_list.xml index c95cdba40..5849a31e9 100644 --- a/res/layout-sw720dp/item_doc_list.xml +++ b/res/layout-sw720dp/item_doc_list.xml @@ -19,7 +19,9 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" + android:background="@drawable/list_item_background" + android:foreground="?android:attr/selectableItemBackground" + android:clickable="true" android:focusable="true" android:orientation="horizontal" > @@ -43,6 +45,7 @@ <com.google.android.material.card.MaterialCardView app:cardElevation="0dp" + app:cardBackgroundColor="@android:color/transparent" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/res/layout/item_dir_grid.xml b/res/layout/item_dir_grid.xml index 269dd0782..8720c37cf 100644 --- a/res/layout/item_dir_grid.xml +++ b/res/layout/item_dir_grid.xml @@ -21,19 +21,21 @@ to focus and selection states, some of which are specific to keyboard when touch mode is not enable. So, if you, heroic engineer of the future, decide to rip these out, please be sure to check out focus and keyboards. --> -<FrameLayout +<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/item_root" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="2dp" - android:focusable="true"> + android:layout_margin="4dp" + android:foreground="?android:attr/selectableItemBackground" + android:clickable="true" + android:focusable="true" + app:cardElevation="0dp"> <com.google.android.material.card.MaterialCardView android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="2dp" android:elevation="0dp" android:duplicateParentState="true" app:cardElevation="0dp" @@ -106,9 +108,8 @@ <View android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_margin="1dp" android:background="@drawable/item_doc_grid_border_rounded" android:contentDescription="@null" android:duplicateParentState="true"/> -</FrameLayout>
\ No newline at end of file +</com.google.android.material.card.MaterialCardView>
\ No newline at end of file diff --git a/res/layout/item_doc_grid.xml b/res/layout/item_doc_grid.xml index 9159a20d3..7b025419f 100644 --- a/res/layout/item_doc_grid.xml +++ b/res/layout/item_doc_grid.xml @@ -20,19 +20,21 @@ to focus and selection states, some of which are specific to keyboard when touch mode is not enable. So, if you, heroic engineer of the future, decide to rip these out, please be sure to check out focus and keyboards. --> -<FrameLayout +<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/item_root" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="2dp" - android:focusable="true"> + android:layout_margin="4dp" + android:foreground="?android:attr/selectableItemBackground" + android:clickable="true" + android:focusable="true" + app:cardElevation="0dp"> <com.google.android.material.card.MaterialCardView android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="2dp" android:elevation="0dp" android:duplicateParentState="true" app:cardElevation="0dp" @@ -199,9 +201,8 @@ <View android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_margin="1dp" android:background="@drawable/item_doc_grid_border_rounded" android:contentDescription="@null" android:duplicateParentState="true"/> -</FrameLayout> +</com.google.android.material.card.MaterialCardView> diff --git a/res/layout/item_doc_list.xml b/res/layout/item_doc_list.xml index ce8925dd2..bcc624808 100644 --- a/res/layout/item_doc_list.xml +++ b/res/layout/item_doc_list.xml @@ -20,6 +20,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/list_item_background" + android:foreground="?android:attr/selectableItemBackground" + android:clickable="true" android:focusable="true" android:orientation="vertical"> |