Skip to content

Commit a98a36e

Browse files
committed
Update
1 parent a086473 commit a98a36e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎CustomView/Advance/[7]DrawText.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,16 @@ leading | + | 行间距,当前行bottom与下一行top之间的距离的推荐
255255

256256
**测试方法是否正确**
257257

258+
``` java
259+
canvas.translate(mCenterX, mCenterY);
260+
261+
String text = "ASSA";
262+
mPaint.setColor(Color.BLACK);
263+
264+
drawTextByCenter(text, 0, 0, canvas, mPaint);
265+
```
266+
267+
结果:
258268

259269

260270

0 commit comments

Comments
 (0)