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 xmlns:android="http://schemas.android.com/apk/res/android"> 19 <item 20 android:state_focused="true" 21 android:state_pressed="true" 22 android:state_selected="true"> 23 <layer-list> 24 <item android:drawable="@drawable/ic_fan_direction_floor_on"/> 25 <item> 26 <shape android:shape="oval"> 27 <solid android:color="@color/car_ui_rotary_focus_pressed_fill_color"/> 28 <stroke android:width="@dimen/car_ui_rotary_focus_pressed_stroke_width" 29 android:color="@color/car_ui_rotary_focus_pressed_stroke_color"/> 30 </shape> 31 </item> 32 </layer-list> 33 </item> 34 <item 35 android:state_focused="true" 36 android:state_pressed="true" 37 android:state_selected="false"> 38 <layer-list> 39 <item android:drawable="@drawable/ic_fan_direction_floor_off"/> 40 <item> 41 <shape android:shape="oval"> 42 <solid android:color="@color/car_ui_rotary_focus_pressed_fill_color"/> 43 <stroke android:width="@dimen/car_ui_rotary_focus_pressed_stroke_width" 44 android:color="@color/car_ui_rotary_focus_pressed_stroke_color"/> 45 </shape> 46 </item> 47 </layer-list> 48 </item> 49 <item 50 android:state_focused="true" 51 android:state_selected="true"> 52 <layer-list> 53 <item android:drawable="@drawable/ic_fan_direction_floor_on"/> 54 <item> 55 <shape android:shape="oval"> 56 <solid android:color="@color/car_ui_rotary_focus_fill_color"/> 57 <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width" 58 android:color="@color/car_ui_rotary_focus_stroke_color"/> 59 </shape> 60 </item> 61 </layer-list> 62 </item> 63 <item 64 android:state_focused="true" 65 android:state_selected="false"> 66 <layer-list> 67 <item android:drawable="@drawable/ic_fan_direction_floor_off"/> 68 <item> 69 <shape android:shape="oval"> 70 <solid android:color="@color/car_ui_rotary_focus_fill_color"/> 71 <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width" 72 android:color="@color/car_ui_rotary_focus_stroke_color"/> 73 </shape> 74 </item> 75 </layer-list> 76 </item> 77 <item android:state_selected="true" android:drawable="@drawable/ic_fan_direction_floor_on"/> 78 <item android:drawable="@drawable/ic_fan_direction_floor_off"/> 79</selector> 80