I have a RecyclerView, which has CheckBoxes as item views.
My bind method is pretty simple:

checkBox.setChecked(modelItem.isChecked());



I am using the default DetaultItemAnimator for the RecyclerView.
What i want to achieve is if the list item is currently in the viewport, 
run the nice toggle animation on the checkbox when the underlying model is 
changed.
(But the animation should not be shown when the item is just rebound, for 
example when the item is scrolled into viewport).

Currently there is no toggle animation at all, because of this 
<https://github.com/android/platform_frameworks_support/blob/master/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java#L430>
 
line i think.

Is there a way to achieve my goal?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b415d1a4-f6e0-4eef-bd82-6861ead8423d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to