wasabeef / recyclerview-animators

An Android Animation library which easily add itemanimator to RecyclerView items.
Apache License 2.0
11.49k stars 1.98k forks source link

Different RecyclerView.Adapter's animation (appearance animation) for scrolling direction ? #59

Open jitrapon opened 8 years ago

jitrapon commented 8 years ago

Hi,

I like this library, very simple to use! However, I would like to know if there is a way to customize (assign) two different animations depending on how I scroll up or down the RecyclerView.

E.g. Imagine with this snippet: AnimationAdapter animationAdapter = new SlideInBottomAnimationAdapter(adapter); animationAdapter.setFirstOnly(true); recyclerView.setAdapter(animationAdapter);

Now, you could imagine that scrolling up and down will animate the items to 'slide from bottom,' which is nice and natural. However, when the user scrolls up, the animation is still sliding from bottom, which doesn't look as nice. It would be nice if the animation could then be 'slide from top' instead.

How do I approach this ? Does anyone have suggestions?

Thank you.

masukuma commented 8 years ago

this is a good idea - anyone with any Ideas?

mariuspena commented 7 years ago

anybody has news on this ?