in my app i have a CheckBox that i change the checked and unchecked background and now it is like below images:
and its the checkbox_background.xml codes:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://ift.tt/nIICcg">
<item android:drawable="@drawable/icon_checkbox_uncheck_background"
android:state_checked="false" />
<item android:drawable="@drawable/icon_checkbox_check_background"
android:state_checked="true" />
</selector>
how can i add animation to checkbox that when change its state the icons change with animation like fading or another animation type?
Aucun commentaire:
Enregistrer un commentaire