The Wayback Machine - https://web.archive.org/web/20210122133717/https://github.com/JessYanCoding/AndroidAutoSize/issues/318
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daixiansen opened this issue Sep 11, 2020 · 0 comments

Comments

@daixiansen
Copy link

@daixiansen daixiansen commented Sep 11, 2020

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 属性后,图片显示正常。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant