Home | History | Annotate | Download | only in drawable
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2015 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License");
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9          http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     19     <!-- Non focused states -->
     20     <item
     21         android:state_focused="false"
     22         android:state_selected="false"
     23         android:state_pressed="false"
     24         android:drawable="@drawable/tab_unselected" />
     25     <item
     26         android:state_focused="false"
     27         android:state_selected="true"
     28         android:state_pressed="false"
     29         android:drawable="@drawable/tab_selected" />
     30 
     31     <!-- Focused states -->
     32     <item
     33         android:state_focused="true"
     34         android:state_selected="false"
     35         android:state_pressed="false"
     36         android:drawable="@drawable/tab_unselected_focused_holo" />
     37     <item
     38         android:state_focused="true"
     39         android:state_selected="true"
     40         android:state_pressed="false"
     41         android:drawable="@drawable/tab_selected_focused_holo" />
     42 
     43     <!-- Pressed -->
     44     <!-- Non focused states -->
     45     <item
     46         android:state_focused="false"
     47         android:state_selected="false"
     48         android:state_pressed="true"
     49         android:drawable="@drawable/tab_unselected_pressed_holo" />
     50     <item
     51         android:state_focused="false"
     52         android:state_selected="true"
     53         android:state_pressed="true"
     54         android:drawable="@drawable/tab_selected_pressed_holo" />
     55 
     56     <!-- Focused states -->
     57     <item
     58         android:state_focused="true"
     59         android:state_selected="false"
     60         android:state_pressed="true"
     61         android:drawable="@drawable/tab_unselected_pressed_focused_holo" />
     62     <item
     63         android:state_focused="true"
     64         android:state_selected="true"
     65         android:state_pressed="true"
     66         android:drawable="@drawable/tab_selected_pressed_focused_holo" />
     67 </selector>
     68