Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edittext set for password with phone number input? (android)

How do I get a Edittext with both a phone input and the ability to hide the string. I know that

android:inputType="textPassword" 

hides the string, while

android:inputType="phone" 

brings up a dialpad interface.

How to combine the two?

like image 616
Portablejim Avatar asked Jan 07 '10 01:01

Portablejim


1 Answers

android:password is deprecated, but AFAIK is the only way because android:inputType="phone|textPassword" is ignored ...

<EditText     android:id="@+id/EditText01"     android:layout_height="wrap_content"     android:layout_width="fill_parent"     android:password="true"     android:inputType="phone" /> 
like image 191
Diego Torres Milano Avatar answered Sep 17 '22 19:09

Diego Torres Milano