my code:
android:layout_width="85dp"
android:layout_height="65dp"
fresco:actualImageScaleType="centerCrop"
fresco:placeholderImage="@drawable/search_default"
fresco:placeholderImageScaleType="centerInside"
fresco:roundedCornerRadius="2dp" />
Is this only the case in AndroidStudio preview? Also, does the image show if you don't specify roundedCornerRadius?
Yes, it's only in AndroidStudio layout xml preview.
my layout:

the preview screen:

set roundAsCircle=true is same as this.
I have tried it without roundedCornerRadius and set roundAsCircle=true, and it does not let me see the preview either. And worse, it doesn't let me preview any other part of the screen when I have the placeholder image.
<com.facebook.drawee.view.SimpleDraweeView
android:layout_width="70dp"
android:layout_height="70dp"
android:id="@+id/imageView5"
fresco:roundAsCircle="true"
fresco:roundingBorderColor="@color/yellow"
fresco:roundingBorderWidth="2dp"
fresco:placeholderImageScaleType="fitCenter"
fresco:placeholderImage="@drawable/userimage"
android:layout_gravity="center" />
preview does not works but if you apply some background image using
android:background="@drawable/sample_img_1"
then it gives a preview of your
fresco:placeholderImage="@drawable/sample_img_1"
or
give your image a static width or height not wrap_content,match_parent etc.
its not a permanent solution but can work till some bug fix comes from developer side.
thanks
Android studio use another xml reference for fresco:
Use this:
xmlns:fresco="http://schemas.android.com/apk/res-auto"
@iosifnicolae2 adding the reference causes no visible change. As of posting this comment, the issue still exists.
Any word on this?
Hey @scottkruse :)
This is indeed a long-standing bug. While it's annoying, there have been more critical issues that we've focused on in the mean time.
There's a good chance that the necessary code change is quite easy. That is why we've marked it as a "starter-task" and "help-wanted" to welcome external contributors and pull-requests.
same issue
I put the workaround on this issue to temporary disable the rounded feature on preview, so we can at least show the preview. Until Android Studio address the issue.
You can try the library on master branch or wait for the next version tagging.
This has been fixed.

Android Studio 3.6.1
Fresco 2.1.0