Set multi-line for EditText's HINT

后端 未结 5 1911
闹比i
闹比i 2021-02-14 08:03

I know that I could change the No. of lines for EditeText\'s Text, yet could I change that of EditText\'s hint as well?

I could not find a solution online.

Thank

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 08:57

    set below two lines in your edittext in your xml file

    android:inputType="textMultiLine"
    android:lines="3"
    

    so gives 3 multilines box are display in preview

提交回复
热议问题