CIRCLEIMAGEVIEW: 一个帮你的ANDROID应用实现圆形效果IMAGEVIEW的开源库
昨天在微信群里介绍了RoundedImageView, 今天介绍的CircleImageView 是一个帮你的Android应用实现圆形效果ImageView的开源库。
该库非常适用于在个人用户信息页显示用户图片,实现方法基于RoundedImageView from Vince Mi,而最初的实现技术是由Romain Guy介绍的。
由于CircleImageView扩展自ImaveView, 因此可用于各种drawables, 例如 PicassoDrawable from Picasso 其他非标准的 drawables,当然大家需要进行测试。

使用方法非常简单,只需进行简单的配置:
|
<
de
.
hdodenhof
.
circleimageview
.
CircleImageView
xmlns
:
app
=
"http://schemas.android.com/apk/res-auto"
android
:
id
=
"@+id/profile_image"
android
:
layout_width
=
"96dp"
android
:
layout_height
=
"96dp"
android
:
src
=
"@drawable/profile"
app
:
border_width
=
"2dp"
app
:
border_color
=
"#FF000000"
/
>
|
获取更多干货请关注微信公号’android-engineer’及新浪微博http://weibo.com/objcc
转载地址:
http://blog.objcc.com/circleimageview/
https://github.com/hdodenhof/CircleImageView