facebook/fresco

PlaceholderImageScaleType sometimes doesn't work

Open

#2,481 创建于 2020年3月25日

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)Java (17,072 star) (3,750 fork)batch import
enhancementgood first issuehelp wanted

描述

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

贡献者指南