I am trying to show in asterisk (*)
symbol in place of dots in EditText
having inputType
as textPassword
. I came across post that ask to use setTransformationMethod()
and implement PasswordTransformationMethod
. But which method I of that class need I implement and how show asterisk? Is there other way to do that?
Thanks
I think you should go through the documentation. Create your
PasswordTransformationMethod
class, and in thegetTransformation()
method, just return a string of*
characters that is the same length as the contents of your password field.I did some fiddling and came up with an anonymous class that worked for me to make a field full of
*
s. I converted it into a usable class here:Use custom class that change DOT value from '\u2022' to '\u002A'