Paint paint = new Paint();
paint.setColor(Color.RED); // 设置圆环的颜色
paint.setStyle(Paint.Style.STROKE); // 设置画笔的样式为圆环
paint.setStrokeWidth(10f);
  •