From 964da060ced4cd59822181296d6577ad14a811a0 Mon Sep 17 00:00:00 2001 From: Wally Hackenslacker Date: Wed, 18 Mar 2026 08:20:09 -0400 Subject: [PATCH] fix: add selected-state styling hook for workspace drawer rows --- app/src/main/res/color/workspace_drawer_row_background.xml | 5 +++++ app/src/main/res/color/workspace_drawer_row_stroke.xml | 5 +++++ app/src/main/res/color/workspace_drawer_row_text.xml | 5 +++++ app/src/main/res/layout/item_workspace_drawer.xml | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 app/src/main/res/color/workspace_drawer_row_background.xml create mode 100644 app/src/main/res/color/workspace_drawer_row_stroke.xml create mode 100644 app/src/main/res/color/workspace_drawer_row_text.xml diff --git a/app/src/main/res/color/workspace_drawer_row_background.xml b/app/src/main/res/color/workspace_drawer_row_background.xml new file mode 100644 index 0000000..3113e89 --- /dev/null +++ b/app/src/main/res/color/workspace_drawer_row_background.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/color/workspace_drawer_row_stroke.xml b/app/src/main/res/color/workspace_drawer_row_stroke.xml new file mode 100644 index 0000000..61d9e05 --- /dev/null +++ b/app/src/main/res/color/workspace_drawer_row_stroke.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/color/workspace_drawer_row_text.xml b/app/src/main/res/color/workspace_drawer_row_text.xml new file mode 100644 index 0000000..b10a053 --- /dev/null +++ b/app/src/main/res/color/workspace_drawer_row_text.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/item_workspace_drawer.xml b/app/src/main/res/layout/item_workspace_drawer.xml index 766684e..680fca3 100644 --- a/app/src/main/res/layout/item_workspace_drawer.xml +++ b/app/src/main/res/layout/item_workspace_drawer.xml @@ -4,17 +4,24 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" + android:clickable="true" + android:focusable="true" + android:foreground="?attr/selectableItemBackground" + app:cardBackgroundColor="@color/workspace_drawer_row_background" app:cardCornerRadius="12dp" + app:strokeColor="@color/workspace_drawer_row_stroke" app:strokeWidth="1dp">