/**
* 左右摇晃
*
* @param counts 晃动次数
* @return
*/
public static Animation shakeAnimation(int counts) {
Animation translateAnimation = new TranslateAnimation(0, 10, 0, 0);
translateAnimation.setInterpolator(new CycleInterpolator(counts));
translateAnimation.setDuration(1000);
return translateAnimation;
}
AnimationUtils.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:BaseLibrary
作者:
评论列表
文章目录