Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 814 Bytes

circular-imageview-with-picasso.md

File metadata and controls

21 lines (14 loc) · 814 Bytes

Circular ImageView with Picasso

If you are using the Picasso library to load images on Android and you want to show a circular image then use Picasso Transformations library to transform the image before loading.

Import

implementation 'jp.wasabeef:picasso-transformations:2.2.1'

Usage

You can use the CropCircleTransformation to get a rounded image which you can pass to the view.

Picasso.with(mContext).load(R.drawable.demo)
    .transform(new CropCircleTransformation())
    .into(holder.image);

P.S. The library also has other useful image transformations which you can use. Check them out here: Picasso Transformations