void changeDisplay(View view, int pos) {
if(mShowPwd) {
return;
}
Account.Entry entry = mItems.get(pos);
if(entry.mType == AccountManager.EntryType.PASSWORD ||
entry.mType == AccountManager.EntryType.PIN) {
boolean showed = mPwdShowed.get(pos);
ViewHolder holder = (ViewHolder)view.getTag();
if(showed) {
holder.mValue.setTransformationMethod(
PasswordTransformationMethod.getInstance());
} else {
holder.mValue.setTransformationMethod(
SingleLineTransformationMethod.getInstance());
}
mPwdShowed.set(pos, !showed);
}
}
DetailFragment.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Passbook
作者:
评论列表
文章目录