0

How can I make text inside EditText of android:inputType="numberPassword" visible? I do see that there is an textVisiblePassword, but I need numberpad only for my app.

Thanks PS: see numberpad image in link below http://cdn1.techworld.com/cmsdata/slideshow/3297873/img_081511-droid-security-3_thumb555.jpg

0

3 Answers 3

1

If you want number pad mode, use this:

<EditText android:inputType="number" .../> 
Sign up to request clarification or add additional context in comments.

2 Comments

well wil inputType="number" the number pad also have other buttons with it. I only want numberpad that comes during numberPassword which only contain buttons 0-9.
@mayank i think you can press anything but no one add without . dot in pad
1

Try following snippet, may solve your problem :

<EditText android:id="@+id/myNumber" android:digits="1234567890." android:inputType="phone" /> 

1 Comment

the numberpad is still same, with (+,-.()) and some other buttons, which i don't want
0

Try this.

<EditText android:id="@+id/myNumber" android:digits="0123456780." android:inputType="numberDecimal" /> 

3 Comments

well wil inputType="numeric" the number pad also have other buttons with it. I only want numberpad that comes during numberPassword which only contain buttons 0-9.
It accept also text but in number...when you enter text it accept number which is related to that text.
thanks, is it possible to get a numberpad like cdn1.techworld.com/cmsdata/slideshow/3297873/… , in edittext without having to choose numberPassword.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.