首页 > 代码库 > View 属性动画

View 属性动画

ObjectAnimator oa=ObjectAnimator.ofFloat(iv,"translationX",0,10.0f,20.0f,30.0f);
oa.setDuration(4000);
oa.setRepeatCount(ObjectAnimator.INFINITE);
oa.setRepeatMode(ObjectAnimator.REVERSE);
oa.start();

View 属性动画