TextPaint

继承于Paint
measureText():计算文本长度,受字体大小影响。
在某些时候需要设定固定字体长度的控件上测量长度并设置长度。

猜你喜欢

转载自blog.csdn.net/lr123838/article/details/72902132