Remove focus border of EditText

Marcos Vasconcelos picture Marcos Vasconcelos · Mar 29, 2011 · Viewed 87.7k times · Source

How can I remove the border with appears when focusing an EditText View?

I need it cause this view has little space in the screen, but without the border it's enough. When running on Emulator an orange border appears, on Device a blue one.

Answer

el-milligano picture el-milligano · Aug 24, 2011

Have you tried setting the background of the EditText to a transparent colour?

<EditText  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:hint="@string/hello" 
android:background="#00000000"
/>