摘要: public class YanghangCreditCircle extends View { private static final String TAG = "YanghangCreditCircle"; private int resid = R.drawable.credit_report_turntable; public YanghangCreditC... 阅读全文
posted @ 2016-09-14 13:54 我在途中 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、基本的绘制图片方法 //Bitmap:图片对象,left:偏移左边的位置,top: 偏移顶部的位置 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) 2、对图片剪接和限定显示区域 第一个Rect 代表要绘制的bitmap 阅读全文
posted @ 2016-09-14 13:36 我在途中 阅读(20848) 评论(0) 推荐(0) 编辑
摘要: 1 引起疑惑 分析视图invalidate流程的过程中发现view的left, right, top, bottom跟自己理解的不一样,现在想分析一下这几个值具体的含义。 2 理解坐标,位置概念 这里涉及坐标系的概念: 坐标系在二维视图中通过X轴和Y轴两个数字为组合表示某个点的绝对坐标。例如(30, 阅读全文
posted @ 2016-09-14 13:03 我在途中 阅读(426) 评论(0) 推荐(0) 编辑