会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lucktian
博客园
首页
新随笔
联系
订阅
管理
2017年5月26日
Android下如何计算要显示的字符串所占的宽度和高度
摘要: Rect bounds = new Rect(); String text = "Hello World"; TextPaint paint; paint = findViewById(R.id.hello_world).getPaint(); paint.getTextBounds(text, 0
阅读全文
posted @ 2017-05-26 17:59 lucktian
阅读(3868)
评论(0)
推荐(0)
编辑
公告