[英]RecyclerView custom change animation
I have a game which uses a RecyclerView
to create a horizontal "Stages" view. 我有一个使用RecyclerView
创建水平“ Stages”视图的游戏。 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. 我尝试使用普通的Animations
,但是无法使其正常工作。
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. ItemAnimator
的animateChange
方法的ItemAnimator
听起来像是执行此操作的好地方,但是我没有运气在这里找到如何实现自定义动画的良好文档。
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. 任何帮助将不胜感激。
我可以通过使用CycleInterpolator完成我想要的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.