android 圆角图片的实现形式,包括用第三方、也有系统的。比如makeramen:roundedimageview,系统的cardview , glide .fresco 。
1 | compile 'com.android.support:appcompat-v7:24.0.0' |
1 | <android.support.v7.widget.CardView |
1 |
|
1 | iv_cardview=(ImageView)findViewById(R.id.iv_cardview); |
1 | iv_fresco=(SimpleDraweeView)findViewById(R.id.iv_fresco); |
1 | package roundimageview.forezp.com.roundimageview; |
1 | Glide.with(this).load(url).transform(new GlideRoundTransform(this,6)).into(iv_glide); |