I have a ListView with rows that include CheckBoxes. This ListView has filtering behavior attached, which recycles those rows by setting new data (via a simple setData()
method) as the filter criteria changes. When this occurs, any recycled row that has the checked
state changed will update its CheckBox, which in turn triggers the Lollipop animation of the CheckBox being drawn in or out.
The ways in which this is distracting to the user are numerous. How can this animation be disabled temporarily when its state is programmatically updated?
Try this
<CheckBox
**android:background="@android:color/transparent"
**android:clickable="false"
android:id="@+id/login_access_tick"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Hope it helps.Thanks
Calling jumpDrawablesToCurrentState()
on your CheckBox right after calling setChecked will skip the animation.
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