leochuan / ViewPagerLayoutManager

ViewPager like LayoutManager which supports some awesome animations and infinite scroll.
Apache License 2.0
1.75k stars 330 forks source link

RecyclerView does not accept custom animations #39

Open djnotes opened 6 years ago

djnotes commented 6 years ago

Hey I was trying to apply custom animations to the items of the list using ConstraintLayout animations (an example here). It had no effect. I also tried another library (Bungee). Again didn't work. It seems that VPLM disables all animations. What's your comment on this? Is it impossible to add custom animations to my activity and views when using VPLM?

leochuan commented 6 years ago

I don't think this kind of animation will effect the item of recyclerView, Does linearLayoutManager has the effect?If it does, maybe the animation will be supported in the future.

djnotes commented 6 years ago

Sorry, Bungee had nothing to do with VPLM. It only works following a startActivity(Intent) call. With ConstraintLayout animation (like first getting constraint set from a new layout, applying it to viewholder, and then starting animation with TransitionManager.beginDelayedTransition(constraintlayout), however, I am not sure. Seems it does not work.