How do I use InputType=numberDecimal with the “phone” soft keypad?

后端 未结 5 1284
不知归路
不知归路 2021-02-01 18:59

For an EditText box, the user should only be entering valid numbers, so I am using android:inputType=\"numberDecimal\". Unfortunately, the soft keyboar

5条回答
  •  误落风尘
    2021-02-01 19:33

    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.

提交回复
热议问题