Android - Disable Password hint
How to disable password hin开发者_如何转开发t while using softkeyboard in Android applications???
Mention the android:inputType
attribute inside your EditText:
android:inputType="textFilter|textMultiLine|textNoSuggestions"
Here is the solution I have come up with.
- Create a new class that
extends TextWatcher
@Override public void beforeTextChanged()
to capture the newCharSequence
- Store the new
CharSequence
privately so you know what text is in there. - Replace the text in the
EditText
with X number of password bullets (•) - Add the watcher to your
EditText
withpwEditText.addTextChangedListener(new PassWatcher());
Hope that helps
精彩评论