vinc3m1/RoundedImageView

LinearLayout使用layout_weight属性的bug

SmithZhenHua opened this issue · 1 comments

    <com.makeramen.roundedimageview.RoundedImageView
        android:layout_height="match_parent"
        app:riv_corner_radius_bottom_left="7dp"
        app:riv_corner_radius_top_left="7dp"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:src="@mipmap/saber4" />

    <com.makeramen.roundedimageview.RoundedImageView
        android:layout_marginLeft="3dp"
        android:layout_marginRight="3dp"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="match_parent"
        android:src="@mipmap/saber4"/>

    <com.makeramen.roundedimageview.RoundedImageView
        android:layout_width="0dp"
        android:layout_height="match_parent"
        app:riv_corner_radius_top_right="7dp"
        app:riv_corner_radius_bottom_right="7dp"
        android:src="@mipmap/saber4"
        android:layout_weight="1"/>

</LinearLayout>

aaaaaaa

第一个图片我设置了左上和左下的圆角,但右上也有圆角且图片错位

可以通过设置scaleType属性来解决