Adding animations in the RecyclerView items: Step 2
Now it's time to add the sliding animation. As we said, we are going to add them from an XML file. Since all that we need is to apply a translation animation, we are going to use a View animation. Go ahead and create a translate animation that will have a duration of 700ms. Then you should load the animation from the CounterAdapter and apply it to your view.
Give it a few tries before peeking!!!

Hints:
PreviousAdding animations in the RecyclerView items: Step 1NextRecyclerView animations step 2: Solution
Last updated