I am currently working on android project, I want to allow the user to hide or show their password on the screen by selecting a checkbox.
How would I go about replacing every character in the string with * character or is there a particular way to do this.
For example if the password is my_password I want it to be replaced with ***********.
You can use setTransformationMethod on TextView along with PasswordTransformationMethod to display stars.