[英]How to change underline color error textinputlayout android
我想知道如何更改 TextInputLayout 下划線的錯誤顏色。
您可以像這樣更改edittext背景中的顏色。 此背景使下划線消失。 但是你可以把它變成你想要的任何顏色。
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/activity_horizontal_margin"
app:hintEnabled="false">
<android.support.design.widget.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Floating Hint Disabled"
android:background="@android:color/transparent" />
</android.support.design.widget.TextInputLayout
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.