is it possible multiline with input type as number in Android Edittext?

后端 未结 2 1991
一向
一向 2021-01-06 01:00

When the android edittext input type is number, is it possible to make multilines? I have tried with the following in xml file.

android:inputType=\"number|textMultiL

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 01:13

    Please do this:

    android:inputType="textMultiLine|number"
    android:digits="0,1,2,3,4,5,6,7,8,9"
    

    Taken from here: Answer

提交回复
热议问题