Allow only decimal numeric input and use phone soft keyboard?

by Watter » Fri, 23 Apr 2010 08:03:48 GMT


Sponsored Links
 I am trying to do something that I thought would be simple, yet I
still haven't found the right approach.

I have a EditText field that should only accept unsigned decimal
entries. Using android:inputType="numberDecimal" in my layout xml file
achieves this, however the soft keyboard that is raised with this
inputType is the standard keyboard but just uses the alternate view
with the number row on top. This is far from ideal for a field that
only allows numbers. A much better soft keyboard for numeric entry is
the "phone" one. It has all of the numbers and a decimal. Perfect!!
Well, except that for the life of me I cannot figure out how to use
both the phone keyboard AND allow only numeric entry. I've tried
everything I can think of but if I use the phone soft keyboard then
the input field also allows things like "(" and any of the other
symbols available on that keyboard.

Is there any way to get the nice big numeric buttons of the phone
keyboard along with only allowing decimal entry?

--



Other Threads

1. Combining free and paid versions of app into a single apk - a proposal to the Google engineers

Yes, this would be an excellent solution to the current problem of
having lite/trial versions of apps on the market.

The only issue I immediately see with this is with the DRM layer. As I
understand it, developers with ADP's cannot download DRM-encumbered
applications from the market. This method, assuming it was popular,
would mean that the free versions of the apps would have to be DRM
protected in order for the pay-for version to be protected. The
side-effect being even more restrictions imposed on the developer
phone.

Disclaimer: I'm not a proud owner of an ADP, but it would be nice not
to cause them further problems...






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

2. [Fwd: Please,Help me !!!! A study of the product develpment in the Android platform at the smart pho,ne industry- Please,take a few mins for filling in the on-line questionnai

What's most interesting, is that he compiled a list of emails from
this group, I assume. There's no option to hide email completely on
google groups...
I think, you can justly call that email a spam.
--~--~---------~--~----~------------~-------~--~----~

3. Service with timer

4. port openRecordStore from J2ME to android

5. HelloSpinner Example!!

6. How to display RGB 565 byte array on the screen

7. How to draw a piece of Bitmap