facebook/fresco

PlaceholderImageScaleType sometimes doesn't work

Open

#2481 aperta il 25 mar 2020

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)Java (3750 fork)batch import
enhancementgood first issuehelp wanted

Metriche repository

Star
 (17.072 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

PlaceholderImageScaleType doesn't work

  • When I use the attribute of the roundedcorner, placeholderImageScaleType not normal work, like I set, on the system version for Android P's phone

  • Fresco version:com.facebook.fresco:fresco:2.1.0

 <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/draweePoiIcon"
        android:layout_width="70dp"
        android:layout_height="50dp"
        android:layout_marginStart="12dp"
        android:layout_marginTop="12dp"
        android:scaleType="fitCenter"
        app:actualImageScaleType="fitCenter"
        app:placeholderImage="@drawable/poi_detail_image_place_holder"
        app:placeholderImageScaleType="fitCenter"
        app:roundedCornerRadius="5dp" />

  • The actual rendering shown:
  • The source file used: original_image

  • I hope to get your help. Thank you very much

@oprisnik

Guida contributor