1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ 4 ~ Copyright (C) 2019 Google Inc. 5 ~ 6 ~ Licensed under the Apache License, Version 2.0 (the "License"); 7 ~ you may not use this file except in compliance with the License. 8 ~ You may obtain a copy of the License at 9 ~ 10 ~ http://www.apache.org/licenses/LICENSE-2.0 11 ~ 12 ~ Unless required by applicable law or agreed to in writing, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License. 17 ~ 18 --> 19<selector xmlns:android="http://schemas.android.com/apk/res/android"> 20 <item android:state_focused="true" android:state_pressed="true"> 21 <shape android:shape="oval"> 22 <solid android:color="@color/car_ui_rotary_focus_pressed_fill_color"/> 23 <stroke android:width="@dimen/car_ui_rotary_focus_pressed_stroke_width" 24 android:color="@color/car_ui_rotary_focus_pressed_stroke_color" /> 25 <size android:width="@dimen/control_bar_button_background_radius" 26 android:height="@dimen/control_bar_button_background_radius"/> 27 </shape> 28 </item> 29 <item android:state_focused="true"> 30 <shape android:shape="oval"> 31 <solid android:color="@color/car_ui_rotary_focus_fill_color"/> 32 <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width" 33 android:color="@color/car_ui_rotary_focus_stroke_color" /> 34 <size android:width="@dimen/control_bar_button_background_radius" 35 android:height="@dimen/control_bar_button_background_radius"/> 36 </shape> 37 </item> 38 <item> 39 <ripple android:color="@color/control_bar_button_background_color" 40 android:radius="@dimen/control_bar_button_background_radius"> 41 </ripple> 42 </item> 43</selector> 44