RecyclerView was introduced as an upgraded version to List view. The RecyclerView is much flexible, more efficient and more advance. With the help of RecyclerView, you can show larger data collections whose data may change at run time. RecyclerView supports different UIs like list and grids, and these can be attained very easily using RecyclerView. RecyclerView also provides animation to its elements at the time element being added or removed. Few of the amazing animations are listed below.
1. Ripple effect animation on Custom Adapter
While trying to make your adapter class inside RecyclerView for making a ripple effect on items don't forget to use
We have RecyclerView items animation feature, using DefaultItemAnimator class we will be able to perform a basic animation. Either we add, select or delete any element this animation will be visible to the user.
RecyclerView.ItemAnimator itemAnimator = new DefaultItemAnimator();
you can vary the duration according to your need.
2. Pull to Refresh Animation
SwipeRefreshLayout class is used to make pull to Refresh animation by making a vertical swipe on the list we can implement this by using custom fling behavior. Just add the few lines of code with two override methods.