Add disabled state to the Spinner widget.

Bug #2464034
This commit is contained in:
Romain Guy
2010-02-24 10:02:01 -08:00
parent 9ff1f96fdf
commit 9897c67c05
5 changed files with 19 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -15,10 +15,24 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@drawable/btn_dropdown_normal" />
<item android:state_pressed="true" android:drawable="@drawable/btn_dropdown_pressed" />
<item android:state_focused="true" android:state_pressed="false"
<item
android:state_window_focused="false" android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_normal" />
<item
android:state_window_focused="false" android:state_enabled="false"
android:drawable="@drawable/btn_dropdown_disabled" />
<item
android:state_pressed="true"
android:drawable="@drawable/btn_dropdown_pressed" />
<item
android:state_focused="true" android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_selected" />
<item android:drawable="@drawable/btn_dropdown_normal" />
<item
android:state_enabled="true"
android:drawable="@drawable/btn_dropdown_normal" />
<item
android:state_focused="true"
android:drawable="@drawable/btn_dropdown_disabled_focused" />
<item
android:drawable="@drawable/btn_dropdown_disabled" />
</selector>