/**
* Show animation indicated invalid pincode
*/
public void setError() {
ValueAnimator goLeftAnimator = ValueAnimator.ofInt(0, 5);
goLeftAnimator.setInterpolator(new CycleInterpolator(2));
goLeftAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override public void onAnimationUpdate(ValueAnimator animation) {
rect.left += (int) animation.getAnimatedValue();
rect.right += (int) animation.getAnimatedValue();
view.invalidate();
}
});
goLeftAnimator.start();
}
KeyRect.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:android-passcodeview
作者:
评论列表
文章目录