AndroidAutoSize icon indicating copy to clipboard operation
AndroidAutoSize copied to clipboard

fresco框架加载图片时,设置圆角属性roundedCornerRadius,图片显示异常

Open daixiansen opened this issue 5 years ago • 1 comments

fresco框架加载图片时,设置圆角属性roundedCornerRadius,图片显示异常 ,如下图所示: image

SimpleDraweeView 属性设置如下:

<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/simple_drawee_view" xmlns:fresco="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" fresco:actualImageScaleType="centerCrop" fresco:failureImageScaleType="centerCrop" fresco:failureImage="@drawable/phone_banner_def_common_bg" fresco:placeholderImageScaleType="centerCrop" fresco:placeholderImage="@drawable/phone_banner_def_common_bg" fresco:retryImageScaleType="centerCrop" fresco:retryImage="@drawable/phone_banner_def_common_bg" fresco:roundedCornerRadius="5dp" fresco:roundTopLeft="true" fresco:roundTopRight="true" fresco:roundBottomLeft="true" fresco:roundBottomRight="true" />

  1. 去掉fresco:roundedCornerRadius 属性后,图片显示正常。

daixiansen avatar Sep 11 '20 07:09 daixiansen

我也遇到了这个问题

githubPQQ avatar Feb 04 '21 07:02 githubPQQ