我想删除下划线。
这是我的代码:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayoutName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
app:boxCornerRadiusTopStart="20dp"
app:boxCornerRadiusTopEnd="20dp"
app:boxCornerRadiusBottomEnd="20dp"
app:boxCornerRadiusBottomStart="20dp"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/textInputEditTextName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/register_hint_name"
android:inputType="text"
android:textColor="@color/black" />
</com.google.android.material.textfield.TextInputLayout>
像这样设置背景:
android:background="@android:color/transparent"
or
android:background="@null"
你也可以看到这个answer https://stackoverflow.com/a/13975575/7543081
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)