1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2023 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<selector xmlns:android="http://schemas.android.com/apk/res/android">
17
18    <!--
19       L -> large radius
20       s -> small radius
21       0 -> no radius
22    -->
23
24    <!-- SINGLE : L L L L -->
25    <item android:state_single="true">
26        <shape android:shape="rectangle">
27            <solid android:color="?attr/widgetPickerSecondarySurfaceColor" />
28            <corners android:radius="@dimen/widget_list_top_bottom_corner_radius"/>
29        </shape>
30    </item>
31
32    <!-- FIRST : 0 0 s s -->
33    <item android:state_first="true">
34        <shape android:shape="rectangle">
35            <solid android:color="?attr/widgetPickerSecondarySurfaceColor" />
36            <corners
37                android:bottomLeftRadius="@dimen/widget_list_content_corner_radius"
38                android:bottomRightRadius="@dimen/widget_list_content_corner_radius" />
39        </shape>
40    </item>
41
42    <!-- MIDDLE : 0 0 s s -->
43    <item android:state_middle="true">
44        <shape android:shape="rectangle">
45            <solid android:color="?attr/widgetPickerSecondarySurfaceColor" />
46            <corners
47                android:bottomLeftRadius="@dimen/widget_list_content_corner_radius"
48                android:bottomRightRadius="@dimen/widget_list_content_corner_radius" />
49        </shape>
50    </item>
51
52    <!-- LAST : 0 0 L L -->
53    <item android:state_last="true">
54        <shape android:shape="rectangle">
55            <solid android:color="?attr/widgetPickerSecondarySurfaceColor" />
56            <corners
57                android:bottomLeftRadius="@dimen/widget_list_top_bottom_corner_radius"
58                android:bottomRightRadius="@dimen/widget_list_top_bottom_corner_radius" />
59        </shape>
60    </item>
61</selector>
62