答案 0 :(得分:0)
尝试一下
<android.support.design.widget.TextInputLayout
android:layout_marginTop="10dp"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:minWidth="400dp">
<android.support.design.widget.TextInputEditText
android:id="@+id/editTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_title_required"/>
</android.support.design.widget.TextInputLayout>