0

I was wondering if it's possible to draw a line anywhere on a View with an xml layout.

My app is something like this. when one of the button is tapped, i need to draw a line from the border of the button to the the image. simply, the line that will be created will be some kind of an arrow.

antonoVodka
  • 191
  • 1
  • 4
  • 13
  • 1
    Try to visit this post http://stackoverflow.com/questions/4583015/creating-line-dividers-in-android-tab-layout-paragraphs/4583071#4583071.It may solve your problem. – Shashank_Itmaster Apr 17 '12 at 04:48
  • I am assuming you don't want a divider sort of a line, you want something of a pointer that is drawn from the button to the image. Is that right? – Shubhayu Apr 17 '12 at 05:13
  • Yes. i want to draw a line between the two since there are many buttons to be connected to an image. – antonoVodka Apr 17 '12 at 05:53

1 Answers1

0

Create any Layouts and provide a small margin between each. Fill the margin gap with some color, this will give you a line.

Pavankumar Vijapur
  • 1,196
  • 2
  • 10
  • 15