版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qugengting/article/details/84824004
ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(view, "translationY", 0f, 200f); objectAnimator.setDuration(1000); objectAnimator.start();
"translationY"表示在Y轴的位移,其他的还有"rotation"以及"alpha",其中alpha的值在0f和1f之间
转载请标明出处:android属性动画最简单使用
文章来源: android属性动画最简单使用