Introduction
This article explains how to draw a line using a canvas in Android.
In this I have drawn two lines that intersect each other. To draw these intersecting lines you need to first extend the view class that provides the onDraw() method where you will write code to draw lines. You will call the drawline() method of the Canvas class to draw the lines. The setColor() method will be provided by the Paint class to set the colors of both the lines.