You are here
Home > Android > ImageView with Rounded Corners in Android

ImageView with Rounded Corners in Android

Hello Friends, Today I am going to share how to add ImageView with Rounded Corners in Android. Actually recently I was working on an app in which I had to set profile pic of user but with rounded corners. I struggled a lot for this simple thing, but found the solution. So now I am sharing this code to help others as well as myself for future. There is code for both local and online image resources for making it round.

So, here is the code.

MainActivity.java

activity_main.xml

AndroidManifest.xml

Screenshot

roundimage

AndroidStudio Project Download

Thanks for Stoping by
If you find this helpful then please share

Rajesh Kumar Sahanee
I am a passionate Java Developer and I like Computer Programming. I love to do some interesting experiments and listening music in my free time.
https://www.zatackcoder.com

Comments

zatackcoder
Top