Allow only decimal numeric input and use phone soft keyboard?

by Nmix » Fri, 23 Apr 2010 12:30:35 GMT


Sponsored Links
 Try adding the following line to the xml to filter for integer input:

android:digits="0123456789"

I've had some success using android:inputType to select the soft
keyboard and android:digits to filter which keys are accepted.



>



Allow only decimal numeric input and use phone soft keyboard?

by jamesc » Fri, 23 Apr 2010 13:44:00 GMT


 >From reading this:

 http://developer.android.com/resources/articles/creating-input-method.html 

it looks like you need TYPE_CLASS_NUMBER.



>


Sponsored Links


Other Threads

1. Since Cupcake, do other people get weird browser behavior?

- Browser scrolls to top of screen intermittently
- On clicking link, feels like navigated to next page but actually
just scrolled back to top of current page
--~--~---------~--~----~------------~-------~--~----~

2. Does G1 have GPS?

lat, lon, cog, knots

Does it have this?

thanks
jim

--~--~---------~--~----~------------~-------~--~----~

3. Force close msg for few seconds when application starts, why?

4. Marketplace Client

5. change custom title view at run time

6. Help! Android Prob.

7. AspectJ with Android