new Thread(new Runnable() { @Override public void run() {//左右抖动动画 TranslateAnimation animation = new TranslateAnimation(-5, 5, 0, 0); animation.setInterpolator(new OvershootInterpolator()); animation.setDuration(100); animation.setRepeatCount(3); animation.setRepeatMode(Animation.REVERSE); iv_vr_play.startAnimation(animation); } }).start();
android中TranslateAnimation实现左右抖动
最新推荐文章于 2024-05-16 10:32:27 发布