android - How to remove colored EditText focus border -
i wanted remove bottom edittext
focus border on edittext
. want edittext
looks this:
that being said, have looked online make bottom focus color of edittext
removed tried set edittext
android:background="#00000000"
, android:background="@android:drawable/editbox_background_normal"
. however, hte first hides entire underline border (which want hide focus underline color, not underline itself) , latter makes edittext
big white box. there way replicate want above? thanks!
try this
edittext_bg.xml
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <!-- draw 1dp width border around shape --> <stroke android:color="#d3d3d3" android:width="1dp" /> </shape> </item> <!-- draw bottom border using background color --> <item android:bottom="1dp" > <shape android:shape="rectangle"> <solid android:color="#ffffff"/> </shape> </item> </layer-list>
and apply background edittext
like
android:background="@drawable/edittext_bg"