Reputation: 2564
I want to make my edit text field without the line at the bottom, like in this picture Right now my edit text looks like this How can I do it?
Upvotes: 18
Views: 22268
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
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
Reputation: 38409
Try below code:-
android:background="@null"
or
android:background="@android:color/transparent"
above code do transparent your edittext background.
Upvotes: 6