1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4* Copyright 2023, The Android Open Source Project 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 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"> 22 23 <item android:state_selected="true"> 24 <shape android:shape="rectangle"> 25 <solid android:color="?androidprv:attr/colorSurfaceHighlight" /> 26 <stroke 27 android:color="?androidprv:attr/colorAccentPrimary" 28 android:width="@dimen/contrast_dialog_button_stroke_width" /> 29 <corners android:radius="@dimen/contrast_dialog_button_radius"/> 30 </shape> 31 </item> 32 33 <item> 34 <layer-list> 35 <item android:top="@dimen/contrast_dialog_button_stroke_width" 36 android:bottom="@dimen/contrast_dialog_button_stroke_width" 37 android:left="@dimen/contrast_dialog_button_stroke_width" 38 android:right="@dimen/contrast_dialog_button_stroke_width"> 39 <shape android:shape="rectangle"> 40 <solid android:color="?androidprv:attr/colorSurfaceHighlight" /> 41 <corners android:radius="@dimen/contrast_dialog_button_radius"/> 42 </shape> 43 </item> 44 </layer-list> 45 </item> 46</selector> 47