摘要: 1.参考:http://blog.csdn.net/rhljiayou/article/details/7212620/ 2.常用方法: 1.Canvas类 drawArc 绘制弧 drawBitmap 绘制位图 drawCircle 绘制圆形 drawLine 绘制线 drawOval 绘制椭圆 阅读全文
posted @ 2017-06-19 15:19 段合江 阅读(7646) 评论(0) 推荐(0)
摘要: public class DensityUtil { /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().... 阅读全文
posted @ 2017-06-19 13:13 段合江 阅读(350) 评论(0) 推荐(0)
摘要: 1.在as安装目录\plugins\Android\lib\templates\activities\common\root\res\layout下,找到simple.xml.ftl文件 2.用以下布局替代 3.重启as 阅读全文
posted @ 2017-06-19 09:57 段合江 阅读(2176) 评论(0) 推荐(0)