Picasso加载圆形图片和圆角图片
2016-03-10 14:00
197 查看
(1)加载圆形图片
https://gist.github.com/julianshen/5829333
改进版支持Palltte
https://gist.github.com/dtygel/71b77481ff9ddec26646
(2)加载圆角图片
https://gist.github.com/aprock/6213395
https://gist.github.com/julianshen/5829333
改进版支持Palltte
https://gist.github.com/dtygel/71b77481ff9ddec26646
Picasso.with(this).load(url).transform(new CircleTransform()).into(ivAvatar);
(2)加载圆角图片
https://gist.github.com/aprock/6213395
Picasso.with(this).load(url).transform(new RoundedTransformation()).into(ivAvatar);
相关文章推荐
- 正则表达式 - 匹配规则
- 字符串与数组的转化iOS
- 基本的Git使用总结
- 安卓之引导页
- JS判断UA动态加载CSS的方法
- 使UITableViewCell之间的cell不显示分割线
- thrift 小结
- 如此之笨 storyboard里找view
- 未使用的变量不报警告
- 正则表达式 - 运算符优先级
- 关于toolbar的menu显示icon问题
- 多台web服务器之间共享session
- ubuntu开机自启动vitrualbox中的虚拟机
- iOS-生成plist文件,在项目中代码创建plist
- 正则表达式 - 元字符
- Codeforces Round #273 (Div. 2)(C)贪心,思维
- http客户端通信 (java原生)
- 添加远程库
- opencv CvMat转Mat
- hihoCoder 1032 最长回文子串(Manacher算法)