canvas - draw line between two cordinates in ondraw() in android -
I have two points, say (x1, y1) and (x2, y2). Now I have to draw a line between these points using the mPaint.setColor (Color.BLACK); Path.moveTo (x1, y1); Path.lineTo (x2, y2); Canvas navepath (route, MP); text "itemprop =" text "> try this kind of OnDraw () method.
canvas.drawline (p1.x, p1.y, p2.x, p2.y, paint);
Comments
Post a Comment