I have an EditText with "textPassword" inputType in my app and I tried to set a non-english password but the inputType didn't allow me to choose another language. Maybe my app users prefer to set a persian password.
Any Ideas?
I have an EditText with "textPassword" inputType in my app and I tried to set a non-english password but the inputType didn't allow me to choose another language. Maybe my app users prefer to set a persian password.
Any Ideas?
inputType
is considered as a hint to the keyboard app on how to treat a specific text-field, even if some keyboards do allow non-english passwords, you can't count on all keyboard apps to behave like that.Instead of using the
inputType
, set thepassword
field totrue
, this will cause the characters to be hidden from the screen, but will allow you to get any input, you should probably also turn off suggestions (using theinputType
field):UPDATE
You can create a plain
EditText
with some textualinputType
, and just set the characters to appear as dots instead of plain text: