Android SimpleDraweView XML中的圆角
我正在尝试使用湿壁画库来圆角图像的特定角 如图所示,如何使图像左下角变圆 以下是xml:Android SimpleDraweView XML中的圆角,android,fresco,Android,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=
<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>
我认为您的图像超出了您的
CardView
区域,这造成了问题
您可以尝试将您的
cardwiew
高度设置为wrap\u content
,并将padding\u left
和padding\u bottom
设置为simpledraweview
我认为您的图像超出了cardwiew
区域,这造成了问题
您可以尝试将您的
cardwiew
高度设置为wrap\u content
,并将padding\u left
和padding\u bottom
设置为simpledraweview
,如果您的父布局中有xmlns:app=”http://schemas.android.com/apk/res-auto“
和xmlns:fresco="http://schemas.android.com/tools“
使用
app:roundedCornerRadius="5dp"
反而
fresco:roundedCornerRadius="5dp"
如果您的父布局中有
xmlns:app=”http://schemas.android.com/apk/res-auto“
和xmlns:fresco=”http://schemas.android.com/tools“
使用
app:roundedCornerRadius="5dp"
反而
fresco:roundedCornerRadius="5dp"
您不需要使用
cardwiew
根据您的要求,使用以下行:
fresco:roundTopLeft="true"
fresco:roundTopRight="false"
fresco:roundBottomLeft="false"
fresco:roundBottomRight="true"
fresco:roundTopStart="false"
fresco:roundTopEnd="false"
fresco:roundBottomStart="false"
fresco:roundBottomEnd="false"
对于您不需要使用
cardwiew
根据您的要求,使用以下行:
fresco:roundTopLeft="true"
fresco:roundTopRight="false"
fresco:roundBottomLeft="false"
fresco:roundBottomRight="true"
fresco:roundTopStart="false"
fresco:roundTopEnd="false"
fresco:roundBottomStart="false"
fresco:roundBottomEnd="false"
检查你的问题,不清楚你想问什么do@GopalSinghSirvi我想我已经说得很清楚了,如何绕过左下角image@GopalSinghSirvi是的,这是打字错误,我现在已经更新了。检查你的问题不清楚你想要什么do@GopalSinghSirvi我想我已经说得很清楚了,如何把底部的lef弄圆街角image@GopalSinghSirvi是的,这是打字错误,我现在更新了。这是最简单的方法。谢谢先生。最简单的方法。谢谢先生。