public class ZhuanPan2 extends View implements View.OnClickListener{
private Paint mPaint;
private int mwidth;
private int mpidding;
private boolean isstart=false;
private RotateAnimation mRotateAnimation;
private RectF mRectF;
private String[] waitext=new String[]{"苹果","橘子","香蕉","荔枝","榴莲","葡萄"};
private int[] colors=new int[]{Color.parseColor("#8EE5EE"),Color.parseColor("#FFD700"),Color.parseColor("#8EE5EE"),Color.parseColor("#FFD700"),Color.parseColor("#8EE5EE"),Color.parseColor("#FFD700")};
private String neitext="start";
public ZhuanPan2(Context context) {
super(context);
}
public ZhuanPan2(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
mypiant();
myRotateAnimation();
setOnClickListener(this);
}
Android转盘抽奖的简单实现
最新推荐文章于 2025-04-07 00:15:00 发布