问题
I created one login application with username and password fields.here my problem is when i insert the password text in edittext filed bydefault its shows in dots. I want to show it in stars symbol.Is it possible in android? If possible please help me.
regards, Madhu.
回答1:
You use setTransformationMethod() and something like the PasswordTransformationMethod
i.e. you make your own PasswordTransformationMethod, where instead of the DOT :
private static char DOT = '\u2022';
You use whatever you fancy. Asterisk is \u002A
来源:https://stackoverflow.com/questions/8195494/how-to-change-edittext-password-filed-characters-to-star-instead-of-dots-android