Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector |
| 3 | xmlns:android="http://schemas.android.com/apk/res/android"> |
| 4 | |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 5 | <item android:state_pressed="true" |
| 6 | android:state_enabled="true" > |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 7 | <shape> |
| 8 | <gradient |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 9 | android:startColor="#ccff00" |
| 10 | android:endColor="#99cc00" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 11 | android:angle="270" /> |
| 12 | <stroke |
| 13 | android:width="3dp" |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 14 | android:color="#99cc00" /> |
| 15 | <corners |
| 16 | android:radius="3dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 17 | <padding |
| 18 | android:left="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 19 | android:top="20dp" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 20 | android:right="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 21 | android:bottom="20dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 22 | </shape> |
| 23 | </item> |
| 24 | |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 25 | <item android:state_enabled="false" > |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 26 | <shape> |
| 27 | <gradient |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 28 | android:startColor="#cccccc" |
| 29 | android:endColor="#669900" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 30 | android:angle="270" /> |
| 31 | <stroke |
| 32 | android:width="3dp" |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 33 | android:color="#669900" /> |
| 34 | <corners |
| 35 | android:radius="3dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 36 | <padding |
| 37 | android:left="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 38 | android:top="20dp" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 39 | android:right="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 40 | android:bottom="20dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 41 | </shape> |
| 42 | </item> |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 43 | |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 44 | <item> |
| 45 | <shape> |
| 46 | <gradient |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 47 | android:startColor="#99cc00" |
| 48 | android:endColor="#669900" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 49 | android:angle="270" /> |
| 50 | <stroke |
| 51 | android:width="3dp" |
Emeric Vigier | e89b48b | 2012-08-30 14:16:46 -0400 | [diff] [blame] | 52 | android:color="#669900" /> |
| 53 | <corners |
| 54 | android:radius="3dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 55 | <padding |
| 56 | android:left="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 57 | android:top="20dp" |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 58 | android:right="10dp" |
Emeric Vigier | de5bc49 | 2012-09-17 11:08:08 -0400 | [diff] [blame] | 59 | android:bottom="20dp" /> |
Emeric Vigier | 78a53e9 | 2012-08-29 18:15:34 -0400 | [diff] [blame] | 60 | </shape> |
| 61 | </item> |
| 62 | </selector> |