动画的套路

来源:互联网 发布:大专软件学校 编辑:程序博客网 时间:2024/05/17 09:19

动画的套路

private void doLogoAnimation() {    ObjectAnimator animator = ObjectAnimator.ofFloat(home_iv_logo,            "rotationY", 0, 90, 360, 180, 270);// 沿着y方向转    animator.setDuration(3000);// 动画时长    animator.setRepeatCount(ObjectAnimator.INFINITE);// 重复    animator.setRepeatMode(ObjectAnimator.REVERSE);// 重复模式    animator.start();}
0 0
原创粉丝点击