【发布时间】:2019-07-25 07:39:33
【问题描述】:
我想要 TextInputLayout 没有任何边框和框,所以我使用下面的代码
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/app_name"
app:boxBackgroundMode="none"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>
但我不知道什么时候写
app:boxBackgroundMode="none"
到 TextInputLayout 然后大小是一个自动拉伸,如果你找到任何关于这个的解决方案,请帮助我,看起来很奇怪。
这是我的输出截图
【问题讨论】:
标签: android android-layout material-design android-xml android-textinputlayout