ViewFlipper 动画永远不会结束?
我有一个 ViewFlipper 设置,其中我的 setInAnimation() 和 setOutAnimation() 引用了我从动画扩展的类。这一切都工作正常,但我注意到,在所有视觉动画完成后(即翻转完成),每当我单击 ViewFlipper 区域内的布局时,我仍然会收到对我的 applyTransformation() 的调用interpolatedTime = 1 的动画类。
这是否意味着动画永远不会正确结束?我尝试将动画侦听器添加到我的动画类中,它告诉我它已结束。我只是想知道为什么它会无缘无故地调用 applyTransformation() (浪费 CPU 和电池??),有没有办法阻止这个?更重要的是,我怀疑这就是为什么每当我触摸 ViewFlipper 区域内的布局时就会出现闪烁的原因。有什么想法吗?
谢谢
I have a ViewFlipper setup where my setInAnimation() and setOutAnimation() are referring to classes that I've extended from Animation. This is all working fine, but what I have noticed is that after all the visual animation has finished ( ie. flip completed ) and whenever I click on the layouts inside my ViewFlipper area, I am still getting calls to my applyTransformation() in my animation classes with interpolatedTime = 1.
Does this mean the animation never ends properly ? I've tried to add an animation listener to my animation class and it is telling me that it ended. I am just wondering why it is calling applyTransformation() for no good reasons ( wasting CPU and battery ?? ), is there a way to stop this ? More importantly, I suspect this is the reason why I can getting a flicker whenever I touch the layout inside the ViewFlipper area. Any ideas ??
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论