@Override
protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) {
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
if (mFocusAnim != null) {
mFocusAnim.end();
}
if (gainFocus) {
mFocusAnim = ObjectAnimator.ofFloat(this, "FocusLine", mFocusLineLength, (float) (getWidth() - 2 * mRoundRadius));
input.showSoftInput(this, InputMethodManager.SHOW_FORCED);
} else {
mFocusAnim = ObjectAnimator.ofFloat(this, "FocusLine", mFocusLineLength, 0);
input.hideSoftInputFromInputMethod(this.getWindowToken(), 0);
}
mFocusAnim.setDuration(1000).setInterpolator(new OvershootInterpolator());
mFocusAnim.start();
}
PswInputView.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:DizzyPassword
作者:
评论列表
文章目录