On Android >= 21 (lollipop), if I change the checked status of a checkbox, it does an animation. I want to prevent it.
I tried to temporarily set the stateListAnimator
to null
, but this did not help. How to prevent the animation?
I had the same issue. This helped me. Just add this after you set the checked state:
checkbox.jumpDrawablesToCurrentState();
I hope I could help you :)
Liam