/**
* 抖動特效
* ViewPropertyAnimator3.1后才出現(xiàn)
*/
if(Build.VERSION.SDK_INT >11)
ViewPropertyAnimator.animate(categoryView)
.translationX(20)
.setInterpolator(new CycleInterpolator(4))
.setDuration(500)
.start();
categoryView是目標view
/**
* 抖動特效
* ViewPropertyAnimator3.1后才出現(xiàn)
*/
if(Build.VERSION.SDK_INT >11)
ViewPropertyAnimator.animate(categoryView)
.translationX(20)
.setInterpolator(new CycleInterpolator(4))
.setDuration(500)
.start();
categoryView是目標view