Use

android:digits
android:numeric

- Anurag Singh

On Fri, Apr 23, 2010 at 8:48 AM, E <[email protected]> wrote:

> Hi! I've searched for long-long time and I can't find the answer.
>
> <EditText android:id="@+id/age"
>               android:inputType="number|phone"/>
>
> This will pop-up a soft keyboard with big buttons and some signs(- .
> N , * # / ), right?
>
> But the propose for this EditText is entering an age number.
>
> Can I restrict the inputType to number AND use a phone keyboard
> WITHOUT entering these signs?
>
> Thank you for guiding a newcomer.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to