相关疑难解决方法(0)

如何让Textinputlayout在多行中提示android?

我在网上尝试过很多选项,但似乎都没有.

我已将此XML用于此目的.

<android.support.design.widget.TextInputLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hintTextAppearance="@style/TextLabel">

    <com.projects.fonts.RobotoEditText
        style="@style/EditText"
        android:hint="@string/description"
        android:singleLine="false"
        app:font="@string/roboto_regular" />

</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)

我也定了

<item name="android:singleLine">false</item>
Run Code Online (Sandbox Code Playgroud)

在TextLabel和EditText中.但他们都没有工作.

android hint android-edittext textinputlayout

9
推荐指数
1
解决办法
2526
查看次数

带有多行提示的EditText

我有一个大EditText盒子.我希望框中的提示看起来像这样(语法高亮不是意图):

Hint about the first line
Hint about the second line
Hint about the third line
Run Code Online (Sandbox Code Playgroud)

我试着用android:hint="@string/hints"EditText在的strings.xml以下,但暗示还是在一行.

<string name="hints">
Hint about the first line
Hint about the second line
Hint about the third line
</string>
Run Code Online (Sandbox Code Playgroud)

怎样才能获得多线提示EditText

android android-edittext

2
推荐指数
1
解决办法
6119
查看次数

标签 统计

android ×2

android-edittext ×2

hint ×1

textinputlayout ×1