Skip to content

Commit 1f0e793

Browse files
committed
Update
1 parent f8a8473 commit 1f0e793

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CustomView/Advance/[7]Path_Play.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,19 @@ rXxx方法 | rMoveTo, rLineTo, rQuadTo, rCubicTo | **不带r的方法是基于
4646

4747
path.moveTo(100,100);
4848
path.lineTo(100,100);
49+
50+
canvas.drawPath(path,mDeafultPaint);
4951
```
5052

5153
在这个例子中,先移动点到坐标(100,100)处,之后再连接 _点(100,100)__(100,100)_ 之间点直线,由于线点起点和终点相同,所以在屏幕上不会绘制出任何内容,接下来看下面一个例子。
5254

5355
``` java
56+
Path path = new Path();
57+
58+
path.moveTo(100,100);
59+
path.rLineTo(100,100);
5460

61+
canvas.drawPath(path,mDeafultPaint);
5562
```
5663

5764

0 commit comments

Comments
 (0)