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.
我的 gridView 上有 onTouchListener,如果按下 ACTION_DOWN,动画(缩放)就会开始。如何做以下事情:
为了让动画完成后的最终状态保持不变,您需要调用Animation.setFillAfter(true)
Animation.setFillAfter(true)
您可以随时重置正在运行的动画,Animation.cancel()并将Animation.reset()视图转换恢复到其初始状态。
Animation.cancel()
Animation.reset()
高温高压