This is the simplest way that I designed. Try this.
dependencies
implementation ‘androidx.appcompat:appcompat:1.3.0-beta01’
implementation ‘androidx.cardview:cardview:1.0.0’
If you are working on android versions above lollipop
Adding Border to round ImageView – LATEST VERSION
Wrap it with another CardView slightly bigger than the inner one and set its background color to add a border to your round image. You can increase the size of the outer CardView to increase the thickness of the border.
You can make a simple circle with white border and transparent content with shape.
// res/drawable/circle.xml
Then make a layerlist drawable and put it as background to your imageview.
// res/drawable/img.xml
and put it as background to your imageview.
You’ll have something like that.