Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android password edit text showing text

I have used one Edittext with attribute android:inputType="textPassword".

But when I type some text in it, text is getting visible character by character before changing to solid bullets.

How can I make the text invisible as the user inputs the text.

Please help me.

like image 957
user3021918 Avatar asked Feb 20 '14 06:02

user3021918


1 Answers

Try to add EditText attribute

android:inputType="text"

And also add programmatically

edt_password.setTransformationMethod(new PasswordTransformationMethod());

like image 195
M D Avatar answered Oct 18 '22 02:10

M D