How to change the color of the line below Edittext via xml

Asked

Viewed 1,039 times

4

How to change the color of this line below Edittext via xml?

inserir a descrição da imagem aqui

  • See: https://answall.com/a/97683/2541

1 answer

3


Try doing it this way:

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="Something or Other"
    android:backgroundTint="@android:color/holo_green_light" />

Note, it will only work with API 21 or higher.

If you have a lower version, you can try this way:

<android.support.v7.widget.AppCompatEditText app:backgroundTint="@color/blue_gray_light" />

  • Straight! Thanks for your help :)

  • You are welcome, always at your beck and call! By the way, give an UP on the answer if it was useful :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.