Skip to content

Commit 4efc3e7

Browse files
committed
Update
1 parent 31efc6a commit 4efc3e7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎CustomView/Fix/DrawText.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ LEFT | 左对齐 基线X在文本左侧,基线y在文本下方,是默
6262
RIGHT | 右对齐 基线x在文本右侧,基线y在文本下方
6363
CENTER | 居中对齐 基线x在文本中间,基线y在文本下方
6464

65+
Align对应的方法自然是setTextAlign,如下:
66+
67+
``` java
68+
public void setTextAlign (Paint.Align align)
69+
```
70+
71+
在实际运用中基线与模式之间的关系则如下图所示:
72+
73+
6574

6675

6776

0 commit comments

Comments
 (0)