A line is, well, a line: a series of points extending in a single direction from a start point to an end point. You draw a line in using the Canvas method drawLine, passing in a start x and y coordinate, an end x and y coordinate, and a Paint object. Figure 4-5 illustrates how the following code will render.
int starty = 100;
Was this article helpful?