Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

border for EditText? [duplicate]

I saw many related discussions but didn't find a suitable solution. What I need to do is to create a black border on the top and the bottom sides of an EditText widget. Is that possible?

like image 237
Droidman Avatar asked Oct 25 '12 17:10

Droidman


1 Answers

This is possible with a NinePatchDrawable background.

http://developer.android.com/guide/topics/resources/drawable-resource.html#NinePatch

like image 114
igorinov Avatar answered Nov 03 '22 18:11

igorinov