Home | History | Annotate | Download | only in drawable-hdpi
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  Copyright (C) 2008-2012  OMRON SOFTWARE Co., Ltd.
      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 <!-- Copyright (C) 2008 The Android Open Source Project
     18 
     19      Licensed under the Apache License, Version 2.0 (the "License");
     20      you may not use this file except in compliance with the License.
     21      You may obtain a copy of the License at
     22 
     23           http://www.apache.org/licenses/LICENSE-2.0
     24 
     25      Unless required by applicable law or agreed to in writing, software
     26      distributed under the License is distributed on an "AS IS" BASIS,
     27      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     28      See the License for the specific language governing permissions and
     29      limitations under the License.
     30 -->
     31 
     32 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     33 
     34     <!-- Toggle keys. Use checkable/checked state. -->
     35  
     36     <item android:state_checkable="true" android:state_checked="true"
     37           android:state_pressed="true"
     38           android:drawable="@drawable/btn_keyboard_key_std_pressed_on" />
     39     <item android:state_checkable="true" android:state_pressed="true"
     40           android:drawable="@drawable/btn_keyboard_key_std_pressed_off" />
     41     <item android:state_checkable="true" android:state_checked="true"
     42           android:drawable="@drawable/btn_keyboard_key_std_normal_on" />
     43     <item android:state_checkable="true"
     44           android:drawable="@drawable/btn_keyboard_key_std_normal_off" />
     45 
     46     <!-- Normal keys -->
     47 
     48     <item android:state_pressed="true"
     49           android:drawable="@drawable/btn_keyboard_key_std_pressed" />
     50     <item
     51           android:drawable="@drawable/btn_keyboard_key_std_normal" />
     52  
     53 </selector>
     54