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. Paging Bos 9b

Paging bos L.....

Please reply ya bos...makasi

wuuusshh....dikirim dari Magix Eclair

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. Paging boss florentinus

Japri saya yah, masakannya udah mateng :)
~AJ

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Render Image in Screen from a web URI

4. OpenGL hardware requirements specification

5. ExpandableListView change background for child items

6. Where to register the CPM Plug-in .

7. Using layout-include together with l10n