I have a ViewPager with three fragments, each with its own RecyclerView. I animated RecyclerView elements while filtering using this approach - implementing an animation filter
I wanted to use the same approach when updating the list with SwipeRefreshLayout using the onRefresh () method inside the fragment:
onRefresh(){ adapter.animateTo(newList);//вызов анимации FragmentDriver.recyclerView.scrollToPosition(0); } but the window with the list (RecyclerView) is completely recreated due to which there is no animation.
How can I make an animation with onRefresh ()? Maybe there are other ways?