14

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?

Droidman
  • 10,983
  • 15
  • 91
  • 137

2 Answers2

2

This is possible with a NinePatchDrawable background.

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

igorinov
  • 429
  • 3
  • 6
0

Yes, it is. Just create your custom EditText or set a suitable drawable as a background.

slezadav
  • 6,076
  • 6
  • 38
  • 61