我设置了一个文本输入浮动按钮,但它显示了输入框外的浮动标签。如何在android中显示输入框内部?
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_input_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColorHint="@color/white_new"
app:hintTextAppearance="@style/TextAppearance.App.TextInputLayout"
android:hint="@string/label">
<EditText
android:id="@+id/et_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:layout_marginStart="20dp"
android:padding="12dp"
android:gravity="left"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="@drawable/edit_textinput_box"
android:layout_marginBottom="25dp"
android:hint="@string/name"
android:inputType="placeholder"
android:textColor="@color/white_new"
android:textColorHint="@color/white_new" />
</com.google.android.material.textfield.TextInputLayout>
暂无答案!
目前还没有任何答案,快来回答吧!