Reputation: 1334
I have a game which uses a RecyclerView
to create a horizontal "Stages" view. When the player passes the current stage I want to add a simple hop animation to the view containing the "Stage" the user just passed. I've tried using normal Animations
, but haven't been able to get them to work correct.
The documentation of the animateChange
method of ItemAnimator
sounds like it's a good place to do this, but I haven't had any luck finding good documentation on how to implement a custom animation here.
I'm looking for advice, pointer to documentation on how to create custom animations on item change, or a solution. Any help would be greatly appreciated.
Upvotes: 1
Views: 847
Reputation: 1334
I was able to accomplish what I wanted by using a CycleInterpolator
Upvotes: 1