In my application I've Customize CheckBox . Its running okay For Above 17 (Android Version,Like Moto E,G) Device . When it running under 17 (Like 15,Galaxy S3), CheckBox Shows Black . Does any guys meet this issue?Any help would be greatly appreciated.
My desire OP For 17 Devices (On Press State)
But Under 17 Devices Shows Like that
Here is my XML
<CheckBox
android:id="@+id/saveLoginCheckBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/custom_checkbox"
android:checked="false"
android:button="@null"
/>
custom_checkbox.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://ift.tt/nIICcg">
<item android:state_checked="true"
android:drawable="@drawable/checked" />
<item android:state_pressed="true"
android:drawable="@drawable/checked" />
<item android:drawable="@drawable/unchecked" />
</selector>
checked.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://ift.tt/nIICcg">
<item android:state_checked="true"
android:drawable="@drawable/checked" />
<item android:state_pressed="true"
android:drawable="@drawable/checked" />
<item android:drawable="@drawable/unchecked" />
</selector>
No comments:
Post a Comment