1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2024 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<selector
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
20
21    <item android:state_selected="true">
22        <layer-list>
23            <item>
24                <shape android:shape="rectangle">
25                    <solid android:color="?androidprv:attr/materialColorSurfaceContainerHighest" />
26                    <stroke
27                        android:color="?androidprv:attr/materialColorSecondary"
28                        android:width="@dimen/contrast_button_stroke_width" />
29                    <corners android:radius="@dimen/contrast_button_radius"/>
30                </shape>
31            </item>
32            <item
33                android:width="24dp"
34                android:height="24dp"
35                android:left="57dp"
36                android:top="57dp">
37                <vector
38                    android:width="24dp"
39                    android:height="24dp"
40                    android:viewportWidth="24"
41                    android:viewportHeight="24"
42                    android:tint="?attr/colorControlNormal">
43                    <path
44                        android:fillColor="?androidprv:attr/materialColorPrimary"
45                        android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10c5.52,0 10,-4.48 10,-10S17.52,2 12,2zM10.59,16.6l-4.24,-4.24l1.41,-1.41l2.83,2.83l5.66,-5.66l1.41,1.41L10.59,16.6z"/>
46                </vector>
47            </item>
48        </layer-list>
49    </item>
50
51    <item>
52        <layer-list>
53            <item android:top="@dimen/contrast_button_stroke_width"
54                  android:bottom="@dimen/contrast_button_stroke_width"
55                  android:left="@dimen/contrast_button_stroke_width"
56                  android:right="@dimen/contrast_button_stroke_width">
57                <shape android:shape="rectangle">
58                    <solid android:color="?androidprv:attr/materialColorSurfaceContainerHighest" />
59                    <corners android:radius="@dimen/contrast_button_radius"/>
60                </shape>
61            </item>
62        </layer-list>
63    </item>
64</selector>