For an EditText box, the user should only be entering valid numbers, so I am using android:inputType=\"numberDecimal\". Unfortunately, the soft keyboar
EditText
android:inputType=\"numberDecimal\"
You just use the phone keyboard and check the input by yourself. It isn't a very big condition to test if the input is a valid digit between 0 and 9.