android左右晃动动画(红包左右晃动)


TranslateAnimation animation = new TranslateAnimation(0, -5, 0, 0);
animation.setInterpolator(new OvershootInterpolator());
animation.setDuration(100);
animation.setRepeatCount(-1);
animation.setRepeatMode(Animation.REVERSE);
view.startAnimation(animation);

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM