Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 ViewFlipper 通过一个简单的动画在三个视图之间翻转。这个动画在完成之前持续了大约 1 分钟,这就是重点。在动画结束产生丑陋的效果之前,调用 showNext() 开始翻转视图的代码紧接在下面。
是否可以调用在动画完成之前不返回的同步 showNext() ?否则,是否可以为 ipotetic OnAnimationComplete事件注册 Listner?
提前谢谢你
有一个动画结束监听器——
http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html#onAnimationEnd%28android.view.animation.Animation%29