IntroActivity.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:RenewPass 作者:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.credential_slide, container, false);

    final EditText editText = (EditText) view.findViewById(R.id.password_field);

    CheckBox checkBox = (CheckBox) view.findViewById(R.id.password_checkbox);
    checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
        @Override
        public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            if (isChecked) {
                editText.setTransformationMethod(null);
            } else {
                editText.setTransformationMethod(new PasswordTransformationMethod());
            }
        }
    });

    return view;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号