Don't set the default edit text property as password. Instead, you can use addTextChangedListener() which will get called as soon as the user enters a character. Maintain an activity level string say "mPass". In the TextWatcher(), onTextChanged method, append character to your mPass and replace the input character by *.
But you will have to be careful regarding this coz application will pass control to the TextWatcher() even after you have replaced the character by *. If not handled properly it will get called recursively causing the application to crash.
Thank you for posting that it could be just the thing to give inspiration to someone who needs it! Keep up the great work!
DGCustomerFirst
Don't set the default edit text property as password. Instead, you can use
addTextChangedListener()
which will get called as soon as the user enters a character. Maintain an activity level string say "mPass". In theTextWatcher()
,onTextChanged
method, append character to your mPass and replace the input character by *.But you will have to be careful regarding this coz application will pass control to the
TextWatcher()
even after you have replaced the character by *. If not handled properly it will get called recursively causing the application to crash.Lite Blue