I have an ImageView which shows user's profile photo and I want it to have this type of frame:
I searched for "rounded ImageView" and "ImageView with rounded corners" and almost looked through all the Q/A in SO but couldn't find what I was looking for. Those question and answers were about this type of frame and I don't want it:
SO answer about rounded ImageView which I don't want,
Recipe for making a rounded ImageView written by Google dev.
I don't want any straight edge-lines of the ImageView, I want it to have smooth-curvy Image frame that is used in Samsung Icons (squircle shape). I also looked through bunch of GitHub repos, couldn't find any that matched my description.
So, is there a way to do it in code, or some repos that I can use like CircularImageView
?
P.S. I am a novice in this sphere, so simple explanations are greatly appreciated.
I also tried to use CardView
as a mask for ImageView
but couldn't get the desired look.