-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to find first visible item's EpoxyHolder? #952
Comments
After some digging, However, the |
I think generally the approach you should take to do this is to toggle a prop on the model, have the model do a partial rebind and have that trigger the animation. this keeps the animation logic completely inside of the model/holder. i'll merge the PR though if you really need to do it that way |
I would like to animate Views when an event (not initiated by the user) occurs. (If the event was initiated by the user, I could use
OnModelClickListener
s to obtain the clickedEpoxyHolder
s. But not for this case.)Previously, I would use
LayoutManager.findFirstVisisbleItem()
&RecyclerView.findViewHolderForAdapterPosition()
to query theViewHolder
I would like to animate, then set up my animators.However, I could not find a way to link a
RecyclerView.ViewHolder
to aEpoxyModelWithHolder
. Does Epoxy provide any way to find the first visible item position'sEpoxyHolder
?Thanks
The text was updated successfully, but these errors were encountered: