luizgrp / SectionedRecyclerViewAdapter

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. Each Section can have its state controlled individually.
MIT License
1.68k stars 372 forks source link

Set animations #13

Closed HerRomero closed 5 years ago

HerRomero commented 8 years ago

Hi! Great library! I am having trouble adding annimation in item added and removed, any suggestions?

luizgrp commented 8 years ago

Thanks @HerRomero! Could you please paste the code you tried and explain what is the trouble you are having?

HerRomero commented 8 years ago

I am doing exactly as the example, first adding the sections to the adapter and then running this code:

RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity().getApplicationContext()); equivalencesRecyclerView.setLayoutManager(mLayoutManager); equivalencesRecyclerView.setItemAnimator(new SlideInLeftAnimator()); equivalencesRecyclerView.getItemAnimator().setAddDuration(750); equivalencesRecyclerView.getItemAnimator().setRemoveDuration(550); equivalencesRecyclerView.setAdapter(sectionAdapter);

Everything is working great but the list is not being animated when it loads. I am running a post delayed in on resume and it just delays the adding of the items and then shows the list already filled without animation.

The animation object is not the problem because it works fine with a normal recycler view list.

surensth commented 7 years ago

has this issue been fixed? I am having animation issue as well.

luizgrp commented 5 years ago

Closing this due to inactivity - there is an animation example in the demo app. Please open a new issue with a proper template if you are still having issues.