How to draw a lines between points and pull those points?

前端 未结 4 767
臣服心动
臣服心动 2020-12-30 09:36

I want to draw the lines between points on the view, and then pull those points upto desired positions even the shape will change.

i know how to draw the line betwe

4条回答
  •  孤城傲影
    2020-12-30 10:26

    I think you may be looking for the Path class:

    The Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves. It can be drawn with canvas.drawPath(path, paint), either filled or stroked (based on the paint's Style), or it can be used for clipping or to draw text on a path.

    See this tutorial for examples of canvas.drawPath

提交回复
热议问题