Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roundAsCircle does not apply to placeholder images #77

Closed
REWKyleB opened this issue Apr 2, 2015 · 4 comments
Closed

roundAsCircle does not apply to placeholder images #77

REWKyleB opened this issue Apr 2, 2015 · 4 comments

Comments

@REWKyleB
Copy link

REWKyleB commented Apr 2, 2015

<com.facebook.drawee.view.SimpleDraweeView
    android:id="@+id/agent_image"
    android:layout_width="80dp"
    android:layout_height="80dp"
    fresco:roundAsCircle="true"
    fresco:placeholderImage="@drawable/ic_image_placeholder"
    fresco:placeholderImageScaleType="fitCenter"/>

roundAsCircle is being applied to the replacement images, but not the placeholder.

Thanks!

@plamenko
Copy link
Contributor

plamenko commented Apr 3, 2015

What is ic_image_placeholder (what kind of drawable)?

@REWKyleB
Copy link
Author

REWKyleB commented Apr 3, 2015

It's just a normal bitmap (.png).

@plamenko
Copy link
Contributor

plamenko commented Apr 4, 2015

Hmm, that's weird. If the placeholder gets resolved to ColorDrawable or BitmapDrawable, then it should get rounded. Can you give us more information?
Btw, are you able to debug? This is the place where rounding should be applied:

placeholderImageBranch = maybeApplyRounding(

@REWKyleB
Copy link
Author

REWKyleB commented Apr 6, 2015

Android studio add a bit of padding to the image when I initially import it and I didn't notice. It was correctly rounding the image, but the extra space would make it seem like it was rounding. All working fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants