/**
* 抖动特效
* ViewPropertyAnimator3.1后才出现
*/
if(Build.VERSION.SDK_INT >11)
ViewPropertyAnimator.animate(categoryView)
.translationX(20)
.setInterpolator(new CycleInterpolator(4))
.setDuration(500)
.start();
categoryView是目标view
/**
* 抖动特效
* ViewPropertyAnimator3.1后才出现
*/
if(Build.VERSION.SDK_INT >11)
ViewPropertyAnimator.animate(categoryView)
.translationX(20)
.setInterpolator(new CycleInterpolator(4))
.setDuration(500)
.start();
categoryView是目标view
本文标题:View抖动效果
本文链接:https://www.haomeiwen.com/subject/mepjnxtx.html
网友评论