list_selector_holo_light.xml revision 6fdab076b75b1ea470a216cba84f1015e77abfd0
10825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville<?xml version="1.0" encoding="utf-8"?>
20825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville<!-- Copyright (C) 2010 The Android Open Source Project
30825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
40825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     Licensed under the Apache License, Version 2.0 (the "License");
50825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     you may not use this file except in compliance with the License.
60825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     You may obtain a copy of the License at
70825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
80825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville          http://www.apache.org/licenses/LICENSE-2.0
90825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
100825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     Unless required by applicable law or agreed to in writing, software
110825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     distributed under the License is distributed on an "AS IS" BASIS,
120825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     See the License for the specific language governing permissions and
140825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville     limitations under the License.
150825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville-->
160825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
170825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville<selector xmlns:android="http://schemas.android.com/apk/res/android">
180825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
190825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <item android:state_window_focused="false" android:drawable="@color/transparent" />
200825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
210825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
220825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <item android:state_focused="true"  android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_light" />
230825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <item android:state_focused="true"  android:state_enabled="false"                              android:drawable="@drawable/list_selector_disabled_holo_light" />
240825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <item android:state_focused="true"                                android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" />
2599c2e1d6749cfad2a8ca94a47857d8c3bfc09454Wink Saville    <item android:state_focused="false"                               android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" />
260825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville    <item android:state_focused="true"                                                             android:drawable="@drawable/list_focused_holo" />
270825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville
280825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville</selector>
290825495a331bb44df395a0cdb79fab85e68db5d5Wink Saville