I\'d Like to make any image from my ImageView
to be circular with a border.
I searched but couldn\'t find any useful information (anything that I tried
Another idea is to use clipToOutline
property of an ImageView
.
Here is an example layout:
And here are our shape_border
drawable:
And shape_oval
drawable:
The only thing you should do in the code - is to enable clipToOutline
property:
binding.ivImage.clipToOutline = true
And of course you can avoid even this line of the code with some BindingAdapter.