0

In my android application, I have some EditTexts. Those EditTexts will serve as password fields, but I've not marked them as password fields in the attributes, so that the font of hint text matches the font of hint in normal EditText widgets.

The problem I have though is that the password is revealed in the keyboard suggestion while it is typed, although it is hidden as I've used:

EditText.setTransformationMethod(new PasswordTransformationMethod());

What should I do to disable those suggestions?

BitParser
  • 3,748
  • 26
  • 42

2 Answers2

1

I had already fixed it, but didn't have time to come and answer the question. For anyone who is struggling with this, adding the following attribute to the EditText will work:

android:inputType="textNoSuggestions"
BitParser
  • 3,748
  • 26
  • 42
0

Did you use android:inputType="textPassword" and android:password="true"?

Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141
  • no I didn't use them because they'd mess up the "hint" font. The hint font becomes monospace, while normal EditTexts have hints with normal font. I used the transformation method instead – BitParser Dec 07 '13 at 20:35
  • 1
    I just tried it and it won't work. The password is still showing at keyboard's suggestions. – BitParser Dec 07 '13 at 20:42