TextInputLayout 中的多行提示

Ins*_*per 6 android android-layout android-textinputlayout

我有一个很长的文本,需要按照要求浮动在编辑文本上。我在这里经历了很多这样的问题,但找不到正确的答案。我们怎样才能做到这一点?我试过在提示字符串中使用 '\n' 但它没有用。

小智 -4

you can add \n without giving any space. example shown below

 <string name="hint_manish">Hint first line\nHint second line\nHint third line</string>
Run Code Online (Sandbox Code Playgroud)