Can anybody tell how to draw a line in Android, perhaps with an example?
You can make a drawable like circle, line, rectangle etc through shapes in xml as follow: