summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-10-06 22:31:24 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-05-06 14:30:30 +0800
commit70e41a87fea6a9c876deb48bdbf5367b6af9b427 (patch)
treedb077ed95c2f04b26f154ca8cfb589ca9b90b8d2
parent7d5a1134e0476425fc0ec377a9441559ef0b0dbc (diff)
Launcher3: Add ripple animation to task menu items
Change-Id: If69416ede272267743c96deff8876bc50c6c9075
-rw-r--r--quickstep/res/drawable/task_menu_item_bg.xml15
1 files changed, 10 insertions, 5 deletions
diff --git a/quickstep/res/drawable/task_menu_item_bg.xml b/quickstep/res/drawable/task_menu_item_bg.xml
index 16c13ebebc..bd863f2bc4 100644
--- a/quickstep/res/drawable/task_menu_item_bg.xml
+++ b/quickstep/res/drawable/task_menu_item_bg.xml
@@ -15,8 +15,13 @@
limitations under the License.
-->
-<shape xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
- <solid android:color="?androidprv:attr/colorSurface" />
- <corners android:radius="@dimen/task_menu_item_corner_radius" />
-</shape>
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
+ android:color="?android:attr/colorControlHighlight">
+ <item>
+ <shape>
+ <solid android:color="?androidprv:attr/colorSurface" />
+ <corners android:radius="@dimen/task_menu_item_corner_radius" />
+ </shape>
+ </item>
+</ripple>