Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / drawable / btn_toggle_material.xml
blob8b19e4ae3561e39dbcf074a92605485700e36dc3
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 The Android Open Source Project
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
8           http://www.apache.org/licenses/LICENSE-2.0
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 -->
17 <inset xmlns:android="http://schemas.android.com/apk/res/android"
18        android:insetLeft="@dimen/button_inset_horizontal_material"
19        android:insetTop="@dimen/button_inset_vertical_material"
20        android:insetRight="@dimen/button_inset_horizontal_material"
21        android:insetBottom="@dimen/button_inset_vertical_material">
22     <layer-list android:paddingMode="stack">
23         <item>
24             <ripple android:color="?attr/colorControlHighlight">
25                 <item>
26                     <shape android:shape="rectangle"
27                            android:tint="?attr/colorButtonNormal">
28                         <corners android:topLeftRadius="@dimen/control_corner_material"
29                                  android:topRightRadius="@dimen/control_corner_material"/>
30                         <solid android:color="@color/white" />
31                         <padding android:left="@dimen/button_padding_horizontal_material"
32                                  android:top="@dimen/button_padding_vertical_material"
33                                  android:right="@dimen/button_padding_horizontal_material"
34                                  android:bottom="@dimen/button_padding_vertical_material" />
35                     </shape>
36                 </item>
37             </ripple>
38         </item>
39         <item android:gravity="bottom|fill_horizontal">
40             <shape android:shape="rectangle">
41                 <size android:height="2dp" />
42                 <solid android:color="@color/control_checkable_material" />
43             </shape>
44         </item>
45     </layer-list>
46 </inset>