Configure android EditText to allow decimals and negatives

后端 未结 3 1886
夕颜
夕颜 2021-02-11 14:52

I have an Android EditText that I want to have the number keyboard come up.

If I set the android:inputType to numberSigned, I get the number keyboard and t

3条回答
  •  日久生厌
    2021-02-11 15:32

    You are just missing this in your EditText,

    android:inputType="numberDecimal|numberSigned"
    

提交回复
热议问题