I have an EditText
field that I would like to only enter negative or positive numbers.
When I use InputType.TYPE_NUMBER
it will bring up the nice numeric keyboard which is what I want; however it will only let you enter positive numbers even though the negative button is on the numeric keyboard.
I tried using the InputType.TYPE_NUMBER_FLAG_SIGNED
and it will allow the user to enter negative or positive numbers like I want; however it brings up the standard alphabetic keyboard.
Is there anyway to bring up the numeric keyboard and allow negative numbers?
Any help with this would be greatly appreciated.