I cannot enter number (numeric) in the Edittext field.
If I keep android:inputType="text"
, number cannot be entered.
If I keep android:inputType="text|number"
, the keyboard accepts only digits.
But If I keep android:inputType="textMultiLine"
, I can enter both text/number but the first character cannot be number and it should be a character.
And I tried doing with other options too, nothing worked. I'm building the application with the target sdk:21
Note: I need both text / number as input