Sartheris Stormhammer
Sartheris Stormhammer

Reputation: 2564

EditText without line at bottom

I want to make my edit text field without the line at the bottom, like in this picture enter image description here Right now my edit text looks like this enter image description here How can I do it?

Upvotes: 18

Views: 22268

Answers (3)

Ye Min Htut
Ye Min Htut

Reputation: 2904

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@null"/>

You can make it by setting the background to null

Upvotes: 54

Subhalaxmi
Subhalaxmi

Reputation: 5707

You can get transparent background of EditText by using

 android:background="#00000000" 

or

 android:background="@null"

or

You can create custom drawable.xml, and just make the drawable transparent and use

android:background="@drawable/customdrawable"

Upvotes: 3

duggu
duggu

Reputation: 38409

Try below code:-

android:background="@null"

or

android:background="@android:color/transparent"

above code do transparent your edittext background.

Upvotes: 6

Related Questions