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?
inputTypeis 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 thepasswordfield 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 theinputTypefield):UPDATE
You can create a plain
EditTextwith some textualinputType, and just set the characters to appear as dots instead of plain text: