Files
lawnchair/quickstep/res/drawable/bg_nudge_view.xml
Brandon Dayauon 1fc6f916d3 Add nudgeView to Taskbar.xml
Aiai will send a broadcast to Launcher and will animate the stashHandleView and nudgeView accordingly.
Verified on large screen device that transient taskbar is not affected as its not in scope at the moment.

bug:409121556
Test: manual - video in bug
Flag: com.android.launcher3.nudge_pill

Change-Id: I740e5d81dd008a230aa089f311d38bac665fc227
2025-04-11 13:24:22 -07:00

70 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2025 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- top left -->
<item>
<shape android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="@dimen/taskbar_nudge_glow_radius_percent"
android:startColor="@color/nudge_pill_color1"
android:endColor="@android:color/transparent"
android:centerX="0.05" android:centerY="0.05" />
<corners android:radius="@dimen/rounded_button_radius" /> </shape>
</item>
<!-- bottom right -->
<item>
<shape android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="@dimen/taskbar_nudge_glow_radius_percent"
android:startColor="@color/nudge_pill_color2"
android:endColor="@android:color/transparent"
android:centerX="0.95" android:centerY="0.95" />
<corners android:radius="@dimen/rounded_button_radius" /> </shape>
</item>
<!-- top right -->
<item>
<shape android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="@dimen/taskbar_nudge_glow_radius_percent"
android:startColor="@color/nudge_pill_color3"
android:endColor="@android:color/transparent"
android:centerX="0.95" android:centerY="0.05" />
<corners android:radius="@dimen/rounded_button_radius" /> </shape>
</item>
<!-- bottom left -->
<item>
<shape android:shape="rectangle">
<gradient
android:type="radial"
android:gradientRadius="@dimen/taskbar_nudge_glow_radius_percent"
android:startColor="@color/nudge_pill_color4"
android:endColor="@android:color/transparent"
android:centerX="0.05" android:centerY="0.95" />
<corners android:radius="@dimen/rounded_button_radius" /> </shape>
</item>
<item android:id="@android:id/background">
<shape android:shape="rectangle">
<corners android:radius="@dimen/rounded_button_radius" />
<stroke
android:width="@dimen/work_apps_paused_button_stroke"
android:color="@android:color/white" />
</shape>
</item>
</layer-list>