I am currently working on an Android project, I want to allow the user to hide or show their password on the screen by checking the box.
How would I go about replacing each character in a string with *, or is there a concrete way to do this.
For example, if the password is my_password , I want it replaced with *********** .
Thanks for any help you can provide.
source share