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 radiuls 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 29 android:topLeftRadius="@dimen/widget_list_top_bottom_corner_radius" 30 android:topRightRadius="@dimen/widget_list_top_bottom_corner_radius" 31 android:bottomLeftRadius="@dimen/widget_list_top_bottom_corner_radius" 32 android:bottomRightRadius="@dimen/widget_list_top_bottom_corner_radius" /> 33 </shape> 34 </item> 35 36 <!-- FIRST_EXPANDED : L L 0 0 --> 37 <item android:state_first="true" android:state_expanded="true"> 38 <shape android:shape="rectangle"> 39 <solid android:color="?attr/widgetPickerSecondarySurfaceColor" /> 40 <corners 41 android:topLeftRadius="@dimen/widget_list_top_bottom_corner_radius" 42 android:topRightRadius="@dimen/widget_list_top_bottom_corner_radius" 43 android:bottomLeftRadius="0dp" 44 android:bottomRightRadius="0dp" /> 45 </shape> 46 </item> 47 48 <!-- FIRST : L L s s --> 49 <item android:state_first="true" > 50 <shape android:shape="rectangle"> 51 <solid android:color="?attr/widgetPickerSecondarySurfaceColor" /> 52 <corners 53 android:topLeftRadius="@dimen/widget_list_top_bottom_corner_radius" 54 android:topRightRadius="@dimen/widget_list_top_bottom_corner_radius" 55 android:bottomLeftRadius="@dimen/widget_list_content_corner_radius" 56 android:bottomRightRadius="@dimen/widget_list_content_corner_radius" /> 57 </shape> 58 </item> 59 60 <!-- MIDDLE_EXPANDED : s s 0 0 --> 61 <item android:state_middle="true" android:state_expanded="true"> 62 <shape android:shape="rectangle"> 63 <solid android:color="?attr/widgetPickerSecondarySurfaceColor" /> 64 <corners 65 android:topLeftRadius="@dimen/widget_list_content_corner_radius" 66 android:topRightRadius="@dimen/widget_list_content_corner_radius" 67 android:bottomLeftRadius="0dp" 68 android:bottomRightRadius="0dp" /> 69 </shape> 70 </item> 71 72 <!-- MIDDLE : s s s s --> 73 <item android:state_middle="true"> 74 <shape android:shape="rectangle"> 75 <solid android:color="?attr/widgetPickerSecondarySurfaceColor" /> 76 <corners 77 android:topLeftRadius="@dimen/widget_list_content_corner_radius" 78 android:topRightRadius="@dimen/widget_list_content_corner_radius" 79 android:bottomLeftRadius="@dimen/widget_list_content_corner_radius" 80 android:bottomRightRadius="@dimen/widget_list_content_corner_radius" /> 81 </shape> 82 </item> 83 84 <!-- LAST : s s L L --> 85 <item android:state_last="true"> 86 <shape android:shape="rectangle"> 87 <solid android:color="?attr/widgetPickerSecondarySurfaceColor" /> 88 <corners 89 android:topLeftRadius="@dimen/widget_list_content_corner_radius" 90 android:topRightRadius="@dimen/widget_list_content_corner_radius" 91 android:bottomLeftRadius="@dimen/widget_list_top_bottom_corner_radius" 92 android:bottomRightRadius="@dimen/widget_list_top_bottom_corner_radius" /> 93 </shape> 94 </item> 95</selector> 96