Problem with EditText background (android)

android

Solution

If you set your EditText background to a color you will effectively suppress Android's default background which is probably a Nine Patch but definetely not just a simple color. As result - you will get a simplest form of EditText - a square box. Here's slightly outdated list of built-in drawables to give you some idea

Problem

I have a problem with EditText background like this ``` <EditText android:id="@+id/edit" android:layout_width="fill_parent" android:layout_height="35sp" android:singleLine="true" android:layout_marginLeft="5px" android:layout_marginRight="5px" android:layout_marginTop="5px" android:textAppearance="?android:attr/textAppearanceSmall" /> ``` alt text http://i765.photobucket.com/albums/xx299/trieutrinhtrinh/edittext.jpg After try to set the background, It look worse ``` <EditText android:id="@+id/edit" android:layout_width="fill_parent" android:layout_height="35sp" android:singleLine="true" android:layout_marginLeft="5px" android:layout_marginRight="5px" android:layout_marginTop="5px" android:textAppearance="?android:attr/textAppearanceSmall" android:background="#ffffff" /> ``` alt text http://i765.photobucket.com/albums/xx299/trieutrinhtrinh/edittext2.jpg What's happen with EditText background? How to make EditText keep default style?

Original source