会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
邪天殇
博客园
新随笔
联系
管理
2013年8月9日
Android 获得画布中字体所占的像素长和宽【动态画图时很有用】
摘要: 方法一:Paint paint = new Paint();Rect rect = new Rect();paint.getTextBounds(String, int start, int end, rect);width = rect.width();height = rect.height();方法二:strWidth = paint.measureText(text);
阅读全文
posted @ 2013-08-09 14:09 邪天殇
阅读(420)
评论(0)
推荐(0)
编辑
公告