How to create round corner image using volley library android

skyshine picture skyshine · Aug 13, 2014 · Viewed 10.2k times · Source

I am getting image urls from server with square shape I have to make it to rounded corner images.Actually I am using volley library ,I know how to create round corner images using universal image loader and picasso libraries.In volley library I am setting image in network imageview like setimageUrl please help me

 holder.ivImage.setImageUrl(url, imageLoader);

Answer

Prashanth Debbadwar picture Prashanth Debbadwar · May 5, 2015

I found an source code which makes imageview rounded shape e.g. https://github.com/hdodenhof/CircleImageView. which was extending imageview, I just make it extend NetworkImageView. Everything working fine for me. If you don't want to use above circular image view, you have to extend NetworkImageView class and customize to meet your needs.