Changing style in default EditText - Android

I am new to Android. How can I get the normal Edit text with the orange border? As the default Edit text I am getting Edit texts with only lines (change to blue when in focus) without any border or background (Text will be displayed above these lines). I tried adding different styles to EditText by defining them in styles.xml. However, I could not get the normal Edit text with orange border. No Theme is defined for the application or the activity. I am testing with an emulator in Platform 4.0.

Answers


The orange border is not the "normal Edit text" style, but is a part of a specific theme, which is not present on every device. It was mainly used on old Android versions.

So you should not try to override the default style, it is generally a bad design and can confuse the users.


You can set a custom drawable for the background. For example:

android:background="@drawable/custom_bg"

Make sure that drawable is a nine-patch.


Need Your Help

cygwin curl, Wget, wget and top “command not found”

windows unix command cygwin

I am pretty sure I have already installed the cygwin default package including the "net" package, however the console kept saying that "command not found" every time I tried to run wget and top. Do...

How can I use bash syntax in Perl's system()?

perl bash command

How can I use bash syntax in Perl's system() command?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.