1 回答

TA贡献1906条经验 获得超10个赞
您的代码很好,提示没有消失,这可能是由于您的TextInputLayout和背景的颜色组合尝试使用一些鲜艳的颜色。
对其进行了一些修改并将其放入线性布局中。
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.TextInputLayout
android:layout_gravity="center"
android:id="@+id/animaldisc_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintStart_toStartOf="parent">
<android.support.design.widget.TextInputEditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Description"
android:inputType="textPersonName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.503"
/>
</android.support.design.widget.TextInputLayout>
</LinearLayout>
添加回答
举报