Recently,I am using the widget named switch. The switch is default widget of Android Studio.The problem is that when I add new Item with switch,its animation will run but I don't want to see it. I used ListView and Cursor Adapter in my project.And the switch is a item as an element of ListView. Do you know how to solve it?
Calling jumpDrawablesToCurrentState()
will disable the animation, if you call it immediately after calling setChecked()
on the switch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With