D
D
Dmitry Serkov2017-03-20 10:19:51
Android
Dmitry Serkov, 2017-03-20 10:19:51

How to remove underlining?

Hello.
How to remove the underline in EditText, but the cursor remains?
6ea63c34ac314a0fbe587cddb58c87c8.jpg
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Obroten54 Luchii, 2017-08-04
@Obroten54

It probably doesn't matter to you anymore. I answer for those who stumble upon a question from a search engine (like me).
The underline appears when the EditText has no background. That is, you just need to set the background.
Solution (when EditText like yours needs to be left transparent):
android:background="@android:color/transparent"

V
vitalik_1984, 2017-03-20
@vitalik_1984

First, write what it is for and the development environment. Otherwise, all the answers that they write to you will resemble fortune-telling on coffee grounds or a conversation with a psychologist who pulls out of you all the details of the problem being solved

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question