【需求】


【核心代码】
// 密保问题 明密文处理
etAnswer.setTransformationMethod(PasswordTransformationMethod.getInstance()); // 设置密文格式
etAnswer.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if(hasFocus){ // 获取焦点
etAnswer.setTransformationMethod(HideReturnsTransformationMethod.getInstance()); // 设置明文格式
}
}
});
mPresenter.getAccountInfo(Constants.mUserId,Constants.mToken,new LoadingDialog(this));
网友评论