2017-06-29 231 views

回答

0

How can I animate a view in Android and have it stay in the new position/size?

<set标签内部,使用

android:fillAfter="true" 
android:fillEnabled="true" 

一般情况下,动画不会改变视图的实际特性,它只是蓬勃生机。如果您想更改实际属性,请使用AnimationListener并监听onAnimationEnd并自行进行更改。

+0

实际上,我想使用动画器内的rotationY属性来实现翻转效果。但是如果视图已经旋转,它总是围绕y轴。 – user7587662