in my layout I am trying to draw a DOTTED LINE.for drawing a horizontal line i am defining a view in my layout file.
You can use following code . it may help you. Create a dotted.xml in drawable folder like this...
then use this xml in your layout with image view like this....