views:

529

answers:

1

I have an EditText that is to collect input for a basic calculator. I want to bring up the numeric keyboard, and thus I set android:inputType to numberDecimal|numberSigned. Problem is, the EditText filters out all characters that aren't numeric, such as "(", ")", "/", "*".

I have tried overriding this behaviour by setting a custom InputFilter which filters nothing out, but it seems to have no affect on the EditText. Is there any way for me to display the numeric soft keyboard without the filtering behaviour?

+1  A: 

Not a direct answer, but I believe setting the inputType to the phone one will allow those characters through.

fiXedd
Unfortunately, it doesn't. I tried by creating an EditText and setting "android:inputType" to "phone". Typing letter on the keyboard just outputs numbers. Anything I missed?
spaceboy2000