android - TextInputLayout 中的多行提示

标签 android android-layout android-textinputlayout

我有一个很长的文本,需要按照要求 float 在编辑文本上。我在这里经历了很多这样的问题,但找不到正确的答案。我们如何才能做到这一点?我尝试过使用带有提示字符串的“\n”,但它不起作用。

最佳答案

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>

关于android - TextInputLayout 中的多行提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49552926/

相关文章:

android - 在没有 Layout Inflater 的情况下使用 getView()

Android EditText 标题(标题)就像 Android 指南中的那样

android-layout - 不明白在哪里使用Void函数和Return类型函数

android - TextInputLayout setErrorEnabled 不创建新的 TextView 对象

android - 更改 OutlinedTextField 的边框半径

android - Floating Label TextInputLayout insideTextInputEdittext 添加清除图标右侧角与onclick功能

android - 包 com.google.android.gms.samples.wallet.databinding 不存在

android - 动画 Sprite 一次然后消失

android - 显示名称未更新 Email.Content_URI

android - ListView 中的缩进