摘要: public class DrawableUtil { /** * 定义一个shape资源 * * @param rgb * @param corneradius * @return */ public static GradientDrawable getDrawable(int rgb, int 阅读全文
posted @ 2017-03-06 15:23 梦和远方 阅读(683) 评论(0) 推荐(0)
摘要: 现在有很多圆形图片的库,用来做用户头像等等,那么它的原理是什么呢,其实很简单。 BitMapUtil public class BitMapUtil { /** * 图片缩放 * wf.wh必须不能是int * * @param source * @param wf * @param hf * @r 阅读全文
posted @ 2017-03-06 15:22 梦和远方 阅读(515) 评论(0) 推荐(0)