mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
figma: https://www.figma.com/design/ccBEWEnusF6lE4edgCw7bG/Android-Interactions-Library?node-id=6315-109525&node-type=frame&t=SBKtwrMnJ0ppeUxa-0 result: https://photos.app.goo.gl/LEWF6tsKz3BXXWuv5 hsv: https://hsv.googleplex.com/4794951907934208 Bug: 327430110 Flag: EXEMPT bugfix Test: Manual Change-Id: Ia953c92f30cbd65a83f8e60e8bb2d4b17073b369
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright (C) 2021 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.
|
|
-->
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item android:drawable="@drawable/all_apps_tabs_background_unselected_focused" android:state_focused="true" android:state_selected="false" />
|
|
<item android:drawable="@drawable/all_apps_tabs_background_selected_focused" android:state_focused="true" android:state_selected="true" />
|
|
<item android:id="@+id/unselected" android:state_focused="false" android:state_selected="false">
|
|
<ripple android:color="@color/accent_ripple_color">
|
|
<item>
|
|
<selector android:enterFadeDuration="100">
|
|
<item android:drawable="@drawable/all_apps_tabs_background_unselected" />
|
|
</selector>
|
|
</item>
|
|
</ripple>
|
|
</item>
|
|
<item android:id="@+id/selected" android:state_focused="false" android:state_selected="true">
|
|
<ripple android:color="@color/accent_ripple_color">
|
|
<item>
|
|
<selector android:enterFadeDuration="100">
|
|
<item android:drawable="@drawable/all_apps_tabs_background_selected" />
|
|
</selector>
|
|
</item>
|
|
</ripple>
|
|
</item>
|
|
</selector> |