Gurpreet Singh | 7138788 | 2023-01-09 19:07:43 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 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 | |
| 17 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 18 | |
| 19 | |
| 20 | <!-- When the window does not have focus. --> |
| 21 | |
| 22 | <item android:drawable="@drawable/gallery_selected_default" |
| 23 | android:state_selected="true" |
| 24 | android:state_window_focused="false" |
| 25 | /> |
| 26 | |
| 27 | <item android:drawable="@drawable/gallery_unselected_default" |
| 28 | android:state_selected="false" |
| 29 | android:state_window_focused="false" |
| 30 | /> |
| 31 | |
| 32 | |
| 33 | <!-- When the window does have focus. --> |
| 34 | |
| 35 | <item android:drawable="@drawable/gallery_selected_pressed" |
| 36 | android:state_selected="true" |
| 37 | android:state_pressed="true" |
| 38 | /> |
| 39 | |
| 40 | <item android:drawable="@drawable/gallery_selected_focused" |
| 41 | android:state_selected="true" |
| 42 | android:state_focused="true" |
| 43 | /> |
| 44 | |
| 45 | <item android:drawable="@drawable/gallery_selected_default" |
| 46 | android:state_selected="true" |
| 47 | /> |
| 48 | |
| 49 | <item android:drawable="@drawable/gallery_unselected_pressed" |
| 50 | android:state_selected="false" |
| 51 | android:state_pressed="true" |
| 52 | /> |
| 53 | |
| 54 | <item android:drawable="@drawable/gallery_unselected_default" |
| 55 | /> |
| 56 | |
| 57 | </selector> |