summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/layout-sw720dp/item_doc_list.xml5
-rw-r--r--res/layout/item_dir_grid.xml13
-rw-r--r--res/layout/item_doc_grid.xml13
-rw-r--r--res/layout/item_doc_list.xml2
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">