我正在尝试使用 Fresco 库对图像的特定角进行圆角处理。
如图所示,如何将图像的左下角圆化。
这是 xml:
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_marginBottom="4.0dp"
android:layout_marginLeft="8.0dp"
android:layout_marginRight="8.0dp"
android:layout_marginTop="4.0dp"
card_view:cardCornerRadius="5dp"
card_view:cardPreventCornerOverlap="false"
>
<com.facebook.drawee.view.SimpleDraweeView xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:id="@+id/image1"
android:layout_width="145dp"
android:layout_height="180dp"
fresco:placeholderImage="@color/pink"
fresco:roundedCornerRadius="5dp"
fresco:roundBottomRight="false"
fresco:roundTopRight="false"
fresco:roundBottomLeft="true"/>
</android.support.v7.widget.CardView>
最佳答案
如果您的父布局中有 xmlns:app="http://schemas.android.com/apk/res-auto"
和 xmlns:fresco="http://schemas.android.com/tools"
使用
app:roundedCornerRadius="5dp"
代替
fresco:roundedCornerRadius="5dp"
关于android - XML 中的 SimpleDraweeView 圆角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36787426/