1<!--
2  ~ Copyright (C) 2024 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<layer-list
18    xmlns:android="http://schemas.android.com/apk/res/android" >
19    <item
20        android:top="2dp"
21        android:bottom="2dp"
22        android:left="2dp"
23        android:right="2dp">
24        <selector>
25            <!-- selected state = solid filled in circle -->
26            <item android:state_checked="true">
27                <shape android:shape="oval"
28                       android:tint="?android:attr/colorAccent">
29                     <size android:height="34dp"
30                           android:width="34dp" />
31                     <solid android:color="@android:color/white" />
32                </shape>
33            </item>
34
35            <!-- unselected state = just the outline of a circle -->
36            <item android:state_checked="false">
37                <shape android:shape="oval">
38                    <size android:height="34dp"
39                          android:width="34dp" />
40                    <stroke android:width="2dp"
41                            android:color="?android:attr/colorAccent" />
42                    <solid android:color="@android:color/transparent" />
43                </shape>
44            </item>
45        </selector>
46    </item>
47</layer-list>
48