1<?xml version="1.0" encoding="UTF-8" ?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<selector 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:aapt="http://schemas.android.com/aapt"> 21 <item 22 android:state_focused="true" 23 android:state_selected="true"> 24 <layer-list> 25 <item> 26 <shape android:shape="rectangle"> 27 <solid android:color="@color/status_icon_selected_button_color"/> 28 <corners android:radius="@dimen/system_bar_pill_radius"/> 29 </shape> 30 </item> 31 <item android:drawable="@drawable/system_bar_pill_rotary_background"/> 32 </layer-list> 33 </item> 34 <item 35 android:state_focused="true" 36 android:state_selected="false"> 37 <layer-list> 38 <item> 39 <shape android:shape="rectangle"> 40 <solid android:color="@color/system_bar_background_pill_color"/> 41 <corners android:radius="@dimen/system_bar_pill_radius"/> 42 </shape> 43 </item> 44 <item android:drawable="@drawable/system_bar_pill_rotary_background"/> 45 </layer-list> 46 </item> 47 <item android:state_selected="true"> 48 <layer-list> 49 <item> 50 <shape android:shape="rectangle"> 51 <solid android:color="@color/status_icon_selected_button_color"/> 52 <corners android:radius="@dimen/system_bar_pill_radius"/> 53 </shape> 54 </item> 55 <item android:drawable="@drawable/system_bar_pill_rotary_background"/> 56 </layer-list> 57 </item> 58 <item android:drawable="@drawable/system_bar_background_pill"/> 59</selector> 60