SyntaxFix
Write A Post
Hire A Developer
Questions
Password.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
This one works for me. But you have to look at Octavian Damiean's comment, he's right.