Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / drawable / btn_check.xml
blob824aff0743501512e0e35fe3f6a1b2b7745f88af
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 <selector xmlns:android="http://schemas.android.com/apk/res/android">
19     <!-- Enabled states -->
20         
21     <item android:state_checked="true" android:state_window_focused="false"
22           android:state_enabled="true"
23           android:drawable="@drawable/btn_check_on" />
24     <item android:state_checked="false" android:state_window_focused="false"
25           android:state_enabled="true"
26           android:drawable="@drawable/btn_check_off" />
28     <item android:state_checked="true" android:state_pressed="true"
29           android:state_enabled="true"
30           android:drawable="@drawable/btn_check_on_pressed" />
31     <item android:state_checked="false" android:state_pressed="true"
32           android:state_enabled="true"
33           android:drawable="@drawable/btn_check_off_pressed" />
35     <item android:state_checked="true" android:state_focused="true"
36           android:state_enabled="true"
37           android:drawable="@drawable/btn_check_on_selected" />
38     <item android:state_checked="false" android:state_focused="true"
39           android:state_enabled="true"
40           android:drawable="@drawable/btn_check_off_selected" />
42     <item android:state_checked="false"
43           android:state_enabled="true"
44           android:drawable="@drawable/btn_check_off" />
45     <item android:state_checked="true"
46           android:state_enabled="true"
47           android:drawable="@drawable/btn_check_on" />
50     <!-- Disabled states -->
52     <item android:state_checked="true" android:state_window_focused="false"
53           android:drawable="@drawable/btn_check_on_disable" />
54     <item android:state_checked="false" android:state_window_focused="false"
55           android:drawable="@drawable/btn_check_off_disable" />
57     <item android:state_checked="true" android:state_focused="true"
58           android:drawable="@drawable/btn_check_on_disable_focused" />
59     <item android:state_checked="false" android:state_focused="true"
60           android:drawable="@drawable/btn_check_off_disable_focused" />
62     <item android:state_checked="false" android:drawable="@drawable/btn_check_off_disable" />
63     <item android:state_checked="true" android:drawable="@drawable/btn_check_on_disable" />
65 </selector>