public class MyMarqueeView extends View {
private Paint paint;
private RectF rect;
private float startX, startY, endX, endY;
private float currentX,currentY;
/**
* 灯大小
*/
private int radius = 15;
/**
* 多少毫秒绘制一个圆点
* 最小80
*/
private int time = 100;
/**
* 绘制的圆点个数,如果数量等于全部数量重新绘制或者取消
*/
int drawNumber = 1;
private int[] myColors = new int[]{Color.YELLOW,Color.BLUE,Color.RED,Color.GREEN};
private String colorPurple = "#8000FF";
private String colorOrange = "#FFA500";
private String colorPink = "#FFC0CB";
private String colorGolden = "#D4AF37";
public MyMarqueeView(Context context) {
super(context);
init();
}
public MyMarqueeView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public MyMarqueeView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
07-25
01-03
01-04

最低0.47元/天 解锁文章
1558

被折叠的 条评论
为什么被折叠?



