facebook/fresco

PlaceholderImageScaleType sometimes doesn't work

Open

Aperta il 25 mar 2020

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

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