Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使Textinputlayout提示多行?_Android_Material Design_Androidx_Android Textinputlayout_Android Textinputedittext - Fatal编程技术网

Android 如何使Textinputlayout提示多行?

Android 如何使Textinputlayout提示多行?,android,material-design,androidx,android-textinputlayout,android-textinputedittext,Android,Material Design,Androidx,Android Textinputlayout,Android Textinputedittext,我想让Textinputlayout提示与material outlinedbox多行,甚至在浮动模式下提示。我已经搜索了很多,但没有找到任何解决方案。有人能帮我完成这个任务吗 <com.google.android.material.textfield.TextInputLayout android:id="@+id/tilFieldLabel" style="@style/Widget.MaterialComponents.TextInputLayout.Outline

我想让Textinputlayout提示与material outlinedbox多行,甚至在浮动模式下提示。我已经搜索了很多,但没有找到任何解决方案。有人能帮我完成这个任务吗

<com.google.android.material.textfield.TextInputLayout
    android:id="@+id/tilFieldLabel"
    style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    app:hintTextAppearance="@style/AddApplicationTextLabel">

    <utilities.customcontrols.BodyEditText
        android:id="@+id/etValue"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:autoLink="web"
        android:gravity="start"
        android:inputType="textMultiLine"
        android:maxLength="1000"
        android:textColor="@color/black"
        android:textSize="@dimen/_13ssp"
        android:theme="@style/AddApplicationEditTextField"
        custom:customfont="bold" />


</com.google.android.material.textfield.TextInputLayout>

您不能这样做。重复的