Here is the solution I came up with.
- Create a new class that
extends TextWatcher @Override public void beforeTextChanged()to grab a new CharSequence- Keep the new one
CharSequenceprivate so you know what text is there. - Replace the text in
EditTextwith the X number of folders with a password (& bull;) - Add an observer to yours
EditTextusingpwEditText.addTextChangedListener(new PassWatcher());
Hope that helps
source
share