圆角Imageview--RoundedImageView
来源:互联网 发布:速卖通软件 编辑:程序博客网 时间:2024/06/10 02:38
github地址:https://github.com/vinc3m1/RoundedImageView
<com.makeramen.roundedimageview.RoundedImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="20dp" android:id="@+id/ivtest" app:riv_oval="true" 是否显示椭圆,否则只有四个角有圆角 app:riv_corner_radius="200dp" app:riv_border_width="2dip" 边框宽度 app:riv_border_color="#333333" />
结合picasso一起使用:
ImageView ivTest = (ImageView) findViewById(R.id.ivtest);Transformation transformation = new RoundedTransformationBuilder() .borderColor(Color.BLACK) .borderWidthDp(3) .cornerRadiusDp(30) .oval(false) .build();Picasso.with(this) .load("http://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1402/12/c1/31189058_1392186616852.jpg") .transform(transformation) .into(ivTest);
0 0
- 圆角Imageview--RoundedImageView
- RoundedImageView 带圆角的imageView
- 圆形imageview(RoundedImageView)
- RoundedImageView作为圆形imageview的使用记录
- 开源项目RoundedImageView学习笔记(圆形ImageView)
- 一个支持圆角的快速ImageView:RoundedImageView
- RoundedImageView实现
- 11RoundedImageView
- RoundedImageView源码解析(三)RoundedImageView解析
- 圆角ImageView
- 圆角imageview
- ImageView圆角
- ImageView圆角
- 圆角ImageView
- 圆角Imageview
- 圆角ImageView
- RoundedImageView的使用
- Android圆形图片控件RoundedImageView
- 微信支付,报invalid out_trade_no错误
- ARM cortex a 的 LCD显示
- Alcatraz不错的插件管理
- SIT和UAT有什么区别?
- 遍历数组和集合
- 圆角Imageview--RoundedImageView
- java权限控制
- java学习日记_18:面向对象之封装的好处和原则。07.05
- 《Linux多线程服务端编程》—线程同步精要
- MS DOS 命令大全
- 字符串倒序
- redis分布式锁实现
- 计算机名词
- iOS linker command failed with exit code 1 (use -v to see invocation)