Android Calculator - Editview cannot input decimal places

前端 未结 4 1980
醉话见心
醉话见心 2021-01-24 10:56

I am new to Android code development...I am developing a Android calculator apps and does not understand why the two EditTexts (first input and second input) cannot accept decim

4条回答
  •  独厮守ぢ
    2021-01-24 11:57

    Change android:inputType from "number" to "numberDecimal". See the documentation for even more options for inputType.

提交回复
热议问题