Why edit text is underlined?

EditText is disabled

Use a TextView instead.

how can I remove underline?

Use a TextView instead.

Or, use a different background for the EditText, probably. I assume that the Theme.Material/Theme.AppCompat way of supplying that bracket is via the background, as it was with Theme and Theme.Holo. I have not changed the background of an EditText in years, as usually it is not needed.

What exactly underline means?

It tells humans that this represents text that they can edit, as opposed to text that they cannot edit.

Leave a Comment