The Password Visibility Toggle feature has been added to support library version 24.2.0 enabling you to toggle the password straight from the EditText without the need for a CheckBox.
You can make that work basically by first updating your support library version to 24.2.0 and then setting an inputType of numberPassword on the TextInputEditText. This works for input types textPassword, numberPassword and textWebPassword.
Here's how to do that:
<android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.design.widget.TextInputEditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/password" android:inputType="numberPassword"/> </android.support.design.widget.TextInputLayout>
You can get more information about the new feature on the developer documentation for TextInputLayout.