0

I want UI which is something like shown in below Image.

enter image description here

My question is How can generate drawable which is shown behind the texts and it should be flexible enough so that varying length texts can be shown properly.

Please anyone can suggest what should i do? or any guideline ?

Ashwin N Bhanushali
  • 3,872
  • 5
  • 39
  • 59
  • [does it helps you](http://stackoverflow.com/questions/5096537/why-do-9-patch-graphics-size-correctly-in-the-emulator-but-not-on-a-phone) – Adil Soomro Oct 19 '11 at 10:42

1 Answers1

1

For drawables that can be expanded without distortion you should have a look at 9-Patch Images.
Those you can place in a custom ListView item along with the text you want to show.

Another good source for information about 9-patch images and how to create them: developer.com

florian h
  • 1,162
  • 1
  • 10
  • 24