fresco icon indicating copy to clipboard operation
fresco copied to clipboard

How to build a circle with outside border

Open walksin opened this issue 11 years ago • 1 comments

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...

walksin avatar Apr 07 '15 08:04 walksin

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:

outside

plamenko avatar Apr 07 '15 14:04 plamenko