同步视图翻转
我正在使用 ViewFlipper 通过简单的动画在三个视图之间翻转。这个动画持续了大约 1 分钟才完成,这就是重点。 紧接着调用 showNext() 来开始翻转视图的代码在动画结束之前到达,产生了丑陋的效果。
是否可以调用直到动画完成才返回的同步 showNext() ? 否则,是否可以为 ipotetic OnAnimationComplete 事件注册一个监听器?
提前谢谢你
I'm using a ViewFlipper to flip between three Views with a simple animation. This animation persists for about 1 minute before complete and this is the point.
The code immediately below the showNext() called to start flipping the views is reached BEFORE the animation end producing an ugly effect.
Is it possible to call a synchronous showNext() that doesn't returns until animation completes?
Otherwise, is it possible to register a Listner for an ipotetic OnAnimationComplete event?
Thanks you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个动画结束监听器 -
http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html#onAnimationEnd%28android.view.animation.Animation%29
There is an animation end listener-
http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html#onAnimationEnd%28android.view.animation.Animation%29