dlangui/views/res/btn_radio.xml

35 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_pressed" />
<item android:state_checked="false" android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_pressed" />
<item android:state_checked="true" android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_focused" />
<item android:state_checked="false" android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_focused" />
<item android:state_checked="true" android:state_hovered="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_focused" />
<item android:state_checked="false" android:state_hovered="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_focused" />
<item android:state_checked="false" android:state_enabled="true"
android:drawable="@drawable/btn_radio_off" />
<item android:state_checked="true" android:state_enabled="true"
android:drawable="@drawable/btn_radio_on" />
<!-- Disabled states -->
<item android:state_checked="false" android:drawable="@drawable/btn_radio_off_disabled" />
<item android:state_checked="true" android:drawable="@drawable/btn_radio_on_disabled" />
</selector>