android:inputType="numberDecimal|numberSigned"
Did not work right, the keyboard that pops up doesn't allow the negative sign.
So I tried using this class from a similar question:
Android InputType layout parameter - how to allow negative decimals?
But again it gives the same keyboard with no negative sign.
I'm trying to compile for android 2.3.x
"phone"
that should show the number pad, which I think has a decimal on it. Not sure about a negative sign though. It is important to remember even though you'll be opening up to a certain "mode" the user could still switch to a different one, which is why validation is so important."phone"
if that doesn't work I don't really have much else. You do have the option to create your own input view for this specific Activity if you wish, then you can be sure it will be the same across any device, but it will be much more complex than using the default keyboard the user has chosen.