上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: 一种通过matrix矩阵缩放://使用Bitmap加Matrix来缩放 public static Drawable resizeImage(Bitmap bitmap, int w, int h) { Bitmap BitmapOrg = bitmap; ... 阅读全文
posted @ 2015-08-18 11:50 飞剑 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 功能:图文混排,可自动缩放字体,如图:单点触控使用的代码来自:http://blog.csdn.net/xiaanming/article/details/42833893 谢谢博主!在该demo中只是将bitmap改为了显示图文混排的效果,不足之处,请大家指正,共同进步!贴上2个重要的方法:pri... 阅读全文
posted @ 2015-08-17 14:22 飞剑 阅读(3394) 评论(0) 推荐(0) 编辑
摘要: 我们canvas绘制文字的遇到一个不知道drawtext(str,x,y,paint) 中的x、y坐标值怎么定义,,如果设为(0,0)的话文字就不会出来了。因此查找到一下资料:问:canvas.drawText("3",x,y,paint);x和y是指画得时候数字3中心的坐标吗?还是左上角的坐标?答... 阅读全文
posted @ 2015-08-15 22:39 飞剑 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); ... 阅读全文
posted @ 2015-08-13 11:08 飞剑 阅读(12001) 评论(0) 推荐(0) 编辑
摘要: 怎么将二级域名转到独立主机,比如:我一个独立的站点 http://www.vsource.cn,,现在买了一个阿里云服务器,想把图片单独放到阿里云服务器上来,成立一个图片服务器http://img.vsource.cn步骤:1、在买的域名商那里更改解析2、在阿里云服务器上的IIS新建站点,设置路径及... 阅读全文
posted @ 2015-08-04 22:59 飞剑 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1、设置旋转动画final RotateAnimation animation =new RotateAnimation(0f,360f,Animation.RELATIVE_TO_SELF, 0.5f,Animation.RELATIVE_TO_SELF,0.5f); animation.setI... 阅读全文
posted @ 2015-08-03 18:31 飞剑 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 问题原因:id_framelayout2 写在 id_linearlayout2 的后面了;注意记得写:android:layout_gravity="start"正确: 阅读全文
posted @ 2015-07-31 20:21 飞剑 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 如题:例如有多个章节的小说,现在要把他们合并成一个txt文件。利用windows自带cmd工具:一、拷贝合并1、将你的txt文档按照顺序分别命名为01.txt 02.txt 03.txt……2、将这些文档移动到D盘123文件夹里3、点“开始”,“运行”,输入cmd后回车4、进入D:\123\文件夹(... 阅读全文
posted @ 2015-07-21 11:09 飞剑 阅读(3920) 评论(0) 推荐(0) 编辑
摘要: 以下命令都是在ubuntu环境下执行ftp启动sudo service vsftpd start 阅读全文
posted @ 2015-07-12 00:13 飞剑 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 源码下载地址:http://download.csdn.net/detail/feijian_/8888219 阅读全文
posted @ 2015-07-10 17:52 飞剑 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页