文字
来源:互联网 发布:js 不用sort数组排序 编辑:程序博客网 时间:2024/04/30 05:47
文字绘制:
String text = getResources().getString(R.string.scan_text);Rect rect = new Rect();paint.setColor(Color.WHITE);paint.setTextSize(25);paint.setAlpha(0xb0);paint.setTypeface(Typeface.create("System", Typeface.BOLD));paint.getTextBounds(text, 0, text.length(), rect);//使rect获得text文字宽度,以便文字居中绘制canvas.drawText(text, (width-rect.width())/2, (float) (frame.bottom + 50), paint);
0 0
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字
- 文字统计
- 文字竖排
- 文字计数
- 心情文字
- 凹陷文字
- 凹陷文字
- 心情文字
- iar创建工程模板
- install node.js and npm
- IDEA跑Tomcat异常
- 繁体字代码
- ThinkPHP读取多维数组里的某一字段
- 文字
- DIV+CSS解决IE6,IE7,IE8,FF兼容问题
- hdu-1506
- hudson 脚本重启tomcat问题
- 18 个最佳代码编辑器/IDE推荐
- 转:c/c++ 运行库
- sql server 中的case when then 语句
- tomcat离线部署Arcgis_js_API,并在Myeclipse中调用
- 嵌套接口-接口