[KEY : ANDROID CUSTOM CHECKBOX, CUSTOM CHECKBOX]
Custom Checkbox Android
How to create custom checkbox. Applying stylish checkbox Android
- Take two images for both states checked and unchecked. In png format.
- Create checkbox in xml.
- Create new xml file assign appropriate name like "checkbox_button.xml"
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <!--checked image--> <item android:drawable="@drawable/checkbox_checked" android:state_checked="true"/> <!--unchecked image--> <item android:drawable="@drawable/checkbox" android:state_checked="false"/> </selector> - Add button property in check box in xml
android:button="@drawable/checkbox_button"