18

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?

Sartheris Stormhammer
  • 2,534
  • 8
  • 37
  • 81

3 Answers3

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

You can make it by setting the background to null

Zain
  • 37,492
  • 7
  • 60
  • 84
Ye Min Htut
  • 2,904
  • 15
  • 28
6

Try below code:-

android:background="@null"

or

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

above code do transparent your edittext background.

duggu
  • 37,851
  • 12
  • 116
  • 113
3

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"
Subhalaxmi
  • 5,687
  • 3
  • 26
  • 42