fresco icon indicating copy to clipboard operation
fresco copied to clipboard

The bug with setting “roundingBorderWidth”

Open cyzxyz opened this issue 10 years ago • 6 comments

In the xml file , I edit the code like this:

    <com.facebook.drawee.view.SimpleDraweeView
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="6dp"
        android:layout_marginLeft="12dp"
        fresco:placeholderImage="@drawable/drawable_u"
        fresco:placeholderImageScaleType="centerCrop"
        fresco:roundingBorderWidth="3dp"
        fresco:roundingBorderColor="@android:color/white"
        fresco:roundAsCircle="true"
        />

but it shows as the follow picture

screenshot_2016-02-29-17-03-18

there is a circle line around this view

as I change the placeholderImage , it show like this

screenshot_2016-02-29-16-56-06

But when I change the roundingBorderWidth to 0dp, the link will disappear.

I think is that the border can't fill with all this view.

My english is not very good ....but,can what i wrote be understood?

cyzxyz avatar Feb 29 '16 09:02 cyzxyz

Could you please explain what you mean by "link will disappear" ? Is this issue about part of the image being rendered outside of the border ?

michalgr avatar Feb 29 '16 11:02 michalgr

@michalgr yes ! It is just like what you say!

cyzxyz avatar Feb 29 '16 14:02 cyzxyz

I don't really understand the issue. The screenshot looks correct to me. If this tiny gray circle around the border is what bothers you, just add fresco:roundingBorderPadding="1dp". If you specify border width to be 0dp, border won't be drawn at all, and this is expected too.

plamenko avatar Mar 01 '16 18:03 plamenko

@plamenko after adding the fresco:roundingBorderPadding="1dp" , this tiny gray circle around the border disappear

but I think , this issue about part of the image being rendered outside of the border . As I change the placeholderImage, the color of circle around the border will be changed .

cyzxyz avatar Mar 02 '16 03:03 cyzxyz

As explained by @plamenko, you should either set no border or add border padding. If there is a different bug, please post a screenshot that highlights the issue and we can re-open this. Closing for now.

oprisnik avatar Dec 14 '16 16:12 oprisnik

What bothers us is why borderWidth makes the image being rendered outside of the border

twlkyao avatar Aug 05 '22 11:08 twlkyao