public boolean isPawSee = false;
在按钮的点击事件中设置一下内容:
isPawSee = !isPawSee;
if(isPawSee){
iv_password_see.setImageResource(R.drawable.login_close_see);
passwordEditText.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
}else{
iv_password_see.setImageResource(R.drawable.login_open_see);
passwordEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
}