fresco
fresco copied to clipboard
How to build a circle with outside border
I am using xml to make a circle image
<style name="Avatar">
<item name="placeholderImage">@drawable/avatar_default</item>
<item name="roundAsCircle">true</item>
<item name="actualImageScaleType">fitCenter</item>
<item name="roundingBorderColor">@color/avatar_border</item>
<item name="roundingBorderWidth">@dimen/dp_2.5</item>
</style>
and the result is inside border, I want to use a color like #1E000000 border outside, pls help...
The problem is that drawing a border outside of the view bounds would make it appear cropped. The grayed out parts would not be visible and you would only see what's depicted by a red color:
