Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change edittext border color [duplicate]

Tags:

android

I would like to know how to change the border color of the EditText view in android to something else...

This is my edittext view:

<EditText
    android:
    android:id="@+id/codeEditText"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_below="@+id/btnEqual"
    android:layout_marginTop="20dp"
    android:ems="10"
    android:gravity="top|left"
    android:inputType="textMultiLine|textNoSuggestions"
    android:scrollbars="vertical"
    android:singleLine="false" >

Thanx upfront.

like image 527
Eli Revah Avatar asked Jul 14 '12 16:07

Eli Revah


1 Answers

There is a great Widget generator that could do all the job for you, it worked great for me.

You just have to pick your color and which widget you want (EditText for example) then you will get a xml file in the drawable directory, you should set this xml as the background of your Widget and your Done!

http://android-holo-colors.com/

like image 185
oznus Avatar answered Nov 09 '22 02:11

oznus