摘要: 注:本文译自:http://developer.android.com/guide/topics/graphics/2d-graphics.htmlAndroid框架API提供了一组2D描画API,使用这些API能够在一个画布(canvas)上渲染自己的定制图形,也能够修改那些既存的View对象,来... 阅读全文
posted @ 2015-07-08 16:43 Raffeale 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1、首先说一下canvas类:Class OverviewThe Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a C... 阅读全文
posted @ 2015-07-08 16:39 Raffeale 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: private static Bitmap big(Bitmap bitmap) { Matrix matrix = new Matrix(); matrix.postScale(1.5f,1.5f); //长和宽放大缩小的比例 Bitmap resizeBmp = Bitmap.createBit... 阅读全文
posted @ 2015-07-08 16:32 Raffeale 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 圆角列表item与圆角图片的实现 阅读全文
posted @ 2015-07-08 16:28 Raffeale 阅读(418) 评论(0) 推荐(0) 编辑
摘要: Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结: 先看下面的代码: ... 阅读全文
posted @ 2015-07-08 00:49 Raffeale 阅读(221) 评论(0) 推荐(0) 编辑