Android自定义圆角图片处理方式及ImageView实现
发布时间
阅读量:
阅读量
每次需要实现圆角效果时,都需要在网络上查找相关资料,因此在此处进行记录:具备圆角特性的ImageView
> 1. /**
>
> 2. * 圆角的ImageView
>
> 3. */
>
> 4. public class MyCircleImageView extends AppCompatImageView {
>
> 5. private float topLeftRadius;
>
> 6. private float topRightRadius;
>
> 7. private float bottomLeftRadius;
>
> 8. private float bottomRightRadius;
>
> 9. private boolean isCircle = true;
>
> 10. private float defRadius = 0;
>
> 11.
>
> 12. private Paint roundPaint;
>
> 13. private Paint im
全部评论 (0)
还没有任何评论哟~
