canvas.drawRect(left,top,right,bottom,paint);
In this
-
left: distance of the left side of rectangular from left side of
canvas. -
top:Distance of top side of rectangular from the top side of
canvas - right:distance of the right side of rectangular from left side of
canvas. - bottom: Distance of the bottom side of rectangle from top side of canvas.