是否有一种方法可以根据用于绘制文本的 Paint 使用 drawText() 方法返回要在 Android 画布上绘制的文本的宽度(以像素为单位)?
你看过吗android.graphics.Paint#measureText(String txt) http://developer.android.com/reference/android/graphics/Paint.html#measureText(java.lang.String)?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)