import java.applet.*; import java.awt.*; public class Snowman extends Applet{ public void paint(Graphics g){ final int MID=150; final int TOP=50; Font myFont=newFont("华文彩云",Font.bont.ITALIC,18); setBackground(Color.CYAN); g.setFont(myFont); g.dr
总共分为三层:一层为圆形边线,一层为进度边线,一层用来显示标识进度节点。 public class CircleProgressBar extends View { private int maxProgress = 100; private int progress = 15; private int progressStrokeWidth = 2; private int marxArcStorkeWidth = 16; // 画圆所在的距形区域 RectF oval; Paint pai