阅读背景:

android中的animation动画左右摇摆晃动

来源:互联网 

左右摇摆的原理,就是向一个方向移动,然后设置反方向的属性。再设置反复次数。

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: