Skip to content

圆形的imageview,能将方形图片进行裁切并且可以加边框和调整间距

Notifications You must be signed in to change notification settings

dreamhb/RoundImageView

Repository files navigation

RoundImageView

一个可以设置边框以及边框间距的ImageView, 基于Alan的代码修改。

使用示例

<hu.damon.view.RoundImageView
    xmlns:riv="http://schemas.android.com/apk/res-auto"
    android:layout_centerInParent="true"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:src="@mipmap/images"
    riv:border_outside_color="@android:color/black"
    riv:border_outside_padding="5dp"
    riv:border_thickness="1dp"
/>

参数设置:

border_thickness 边框的宽度,如果为0,则不显示

border_inside_color 内边框的颜色

border_outside_color 外边框的颜色

border_outside_padding 外边框与里面图的间距

About

圆形的imageview,能将方形图片进行裁切并且可以加边框和调整间距

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages