How to create Edit Text with rounded corners?

  • 0

How to create Edit Text with rounded corners?

Category : Uncategorized

There is an easier way than the one written by CommonsWare. Just create a drawable resource that specifies the way the EditText will be drawn:






Then, just reference this drawable in your layout:




You will get something like:

alt text
Edit

Based on Mark’s comment, I want to add the way you can create different states for your EditText:







These are the states:







And… now, the EditText should look like:





Leave a Reply