Sudhanshu Sudhanshu - 1 month ago 8
Android Question

change the look of Edit Text box in android

I want to change the way the edit text view looks like... I have found a few answers but they somehow don't solve my purpose...
Please kindly provide solutions.

Answer

Try .

You can do something like this to make a rounded edit box:

Make styyles.xml in values folder.

<solid android:color="#FFFFFF"/>

<stroke
    android:width="2dp"
    android:color="#E7E7E7"
    android:height="10dp"/>

<corners
    android:radius="5dp"/>

You can then use it in xml like :

style="@style/Edit_box_background" other attributes....