先插入第三方库:implementation 'com.makeramen:roundedimageview:2.3.0'
之后
<com.makeramen.roundedimageview.RoundedImageView android:id="@+id/iv_beauty"android:layout_width="120dp"
android:layout_height="120dp"
android:layout_centerHorizontal="true" android:src="@drawable/data"
app:riv_corner_radius_bottom_left="10dp"
app:riv_corner_radius_bottom_right="10dp"
app:riv_corner_radius_top_left="10dp"
app:riv_corner_radius_top_right="10dp" /> app:riv_corner_radius_top_left="10dp" //左上角弧度
app:riv_corner_radius_top_right="10dp" //右上角弧度 app:riv_corner_radius_bottom_left="10dp" //左下角弧度
app:riv_corner_radius_bottom_right="10dp" //右下角弧度
标签:圆角,right,riv,app,10dp,radius,RoundedImageView,corner,图片 From: https://www.cnblogs.com/20020621zyh/p/17503736.html