kwogger
kwogger

Reputation: 1422

Custom Android Keyboard Input Filtering

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 behavior 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 behavior?

Upvotes: 1

Views: 2070

Answers (1)

Jeremy Logan
Jeremy Logan

Reputation: 47514

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

Upvotes: 1

Related Questions