public static Drawable generateCircleBgDrawable(float width, int color) {
Shape arcShape = new ArcShape(0, 360);
ShapeDrawable shopDrawablePress = new ShapeDrawable(arcShape);//圆形shape
shopDrawablePress.getPaint().setColor(color);//设置颜色
shopDrawablePress.getPaint().setStyle(Paint.Style.STROKE);//设置颜色
shopDrawablePress.getPaint().setStrokeWidth(width);//设置颜色
return shopDrawablePress;
}
ResUtil.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:RLibrary
作者:
评论列表
文章目录