Set multi-line for EditText's HINT

后端 未结 5 1927
闹比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:53

    use new line separator \n in ur hint.

    like

    android:hint="first line of hint \n second line of hint so on.."
    

    in strings

    first line of hint \n second line of hint so on..
    
    android:hint="@string/urhint"
    

    hope it works..

提交回复
热议问题