Create rounded corner imageview using Android Glide V4:
GlideApp.with(mContext)
.load(imageURL)
.fitCenter()
.transform(new RoundedCorners(3)) // using glide
.diskCacheStrategy(DiskCacheStrategy.ALL)
.error(R.drawable.ocd_placeholder)
.placeholder(R.drawable.ocd_placeholder)
.into(imageView);
GlideApp.with(mContext)
.load(imageURL)
.fitCenter()
.transform(new RoundedCorners(3)) // using glide
.diskCacheStrategy(DiskCacheStrategy.ALL)
.error(R.drawable.ocd_placeholder)
.placeholder(R.drawable.ocd_placeholder)
.into(imageView);
No comments:
Post a Comment