title: Show the password with EditText
body: <p>I use an EditText to enter password.
  And a CheckBox to show password or not.
  Below function is the part:</p>
  
  <pre><code>public void ShowPassword() {
      if (cb.isChecked()) {
          password.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
      } else {
          password.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
      }
  }
  </code></pre>
  
  <p>When it checked, it show password.
  But when it not checked, it does show stars.
  How to modify it to show star while the cb is not checked?</p>