How to change the color of this line under EditText via xml?
Try 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" />
Warning, it will only work with API 21 or higher.
If you have a lower version, you can try this:
<android.support.v7.widget.AppCompatEditText app:backgroundTint="@color/blue_gray_light" />