【发布时间】:2020-01-28 06:59:34
【问题描述】:
我想用材质轮廓框制作 Textinputlayout 提示多行,甚至在浮动模式下提示。我搜索了很多,但没有找到任何解决方案,谁能帮我完成这项任务?
<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>
【问题讨论】:
-
你不能这样做。
标签: android material-design androidx android-textinputlayout android-textinputedittext