setKeyListener will override setInputType and change the keyboard
问题 Hi everyone I'm having a problem between two devices. In practice using the InputType and the KeyListener I'm manipulating an EditText to make it receive the commas and numbers from the numeric pad (for more background check my previous question). Using the following code I'm able to do something like that: editText.setInputType(InputType.TYPE_CLASS_NUMBER + InputType.TYPE_NUMBER_FLAG_DECIMAL); editText.setKeyListener(DigitsKeyListener.getInstance("0123456789,")); Unfortunately this doesn't