RoundedImageView作为圆形imageview的使用记录
来源:互联网 发布:高考心态调整 知乎 编辑:程序博客网 时间:2024/05/29 10:45
github : https://github.com/vinc3m1/RoundedImageView
举例:
<com.makeramen.rounded.RoundedImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_alignParentLeft="true" android:padding="10dip" android:src="@drawable/photo1" android:scaleType="center" makeramen:corner_radius="30dip" makeramen:border_width="2dip" makeramen:border_color="#333333" />
com.makeramen.rounded.RoundedImageView 控件的宽和高 相等 固定 可以变成圆形
我自己使用的情况:
<!-- riv_corner_radius和 layout_width layout_height android:scaleType="centerCrop" 一致圆形 centerCrop or fitXY--> <com.makeramen.roundedimageview.RoundedImageView xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/iv_pwd_login" android:src="@drawable/unlogin" android:layout_width="150dp" android:layout_height="150dp" android:scaleType="fitXY" app:riv_corner_radius="75dp" app:riv_border_width="1dip" app:riv_border_color="#FFFFFFFF" app:riv_mutate_background="true" app:riv_tile_mode="clamp" app:riv_oval="true" />
<pre name="code" class="html">app:riv_tile_mode="clamp"
设置小图不平铺
eclipse类库下载:http://download.csdn.net/detail/richiezhu/9399144
0 0
- RoundedImageView作为圆形imageview的使用记录
- 圆形imageview(RoundedImageView)
- RoundedImageView 带圆角的imageView
- android圆形图片开源框架roundedimageview的使用
- 开源项目RoundedImageView学习笔记(圆形ImageView)
- RoundedImageView的使用
- Android中自定义圆形图片的CircleImageView和RoundedImageView基本使用效果
- 圆角Imageview--RoundedImageView
- 仿圆形图片的实现原理,例RoundedImageView
- 一个支持圆角的快速ImageView:RoundedImageView
- 记录工作中可能用到的---圆形imageView
- android圆形的ImageView
- android圆形的ImageView
- Android圆形的ImageView
- android 圆形的ImageView
- android圆形的ImageView
- Android圆形的Imageview
- android圆形的ImageView
- 深入理解Java虚拟机 字节码执行引擎
- 饿了么移动APP的架构演进
- CDH5.5.1 安装指南 中文首发版
- Ruby对象、变量和常量
- javaEE之------添加JavaScript中自己写的函数
- RoundedImageView作为圆形imageview的使用记录
- 队列
- Android 中 单元测试的配置
- UISearchDisplayController点击搜索时屏幕顶部出现黑条问题的解决方案
- C++学习笔记
- 红米2移动稳定版 刷开发版本
- 06day 分割编译与中断处理
- AlexNet论文翻译
- python初学selenium+phantomjs遇到的问题