Using picasso library with a circle image view

前端 未结 5 1482
长发绾君心
长发绾君心 2021-01-04 00:45

I am looking at using the Picasso library to download an image from URL and pass this into circle image view, but since picasso requires that you pass in an actual imageView

5条回答
  •  -上瘾入骨i
    2021-01-04 00:57

    I don't think you require CircleImageView library

    You can implement Circular Transformation check the below gist

    https://gist.github.com/julianshen/5829333

    then

    Picasso.with(activity).load(image link here)
         .transform(new CircleTransform()).into(ImageView);
    

提交回复
热议问题