Derf Shaya
Member
Hi, I am using B4XFloatTextField for password. However, the password I key into the field seems to turn up in suggestions. This reveals the user's passwords and even worse, the passwords would be stored in the keyboard dictionary. I don't face this problem with Android native TextViews, so how do I exactly solve this problem?
I have searched around in the forums and have come across this fix:
Neither of them worked for me. This is my code excerpt:
This is what happens in the app:
I have searched around in the forums and have come across this fix:
Suggested Fix for Disabling Suggestions (in B4X):
textField.InputType = Bit.Or(textField.InputType, 524288)
'Or
textField.InputType = Bit.Or(textField.InputType, 0x80000)
Neither of them worked for me. This is my code excerpt:
My Code in a Custom View (in B4X):
Private Sub Init
Dim txtBox As EditText
txtBox = txt_TextBox.TextField
txtBox.Padding = Array As Int(0dip, 0dip, 0dip, 0dip)
If getPasswordMode Then
txtBox.InputType = Bit.Or(txtBox.InputType, 0x80000)
End If
End Sub
This is what happens in the app: