package com.huangxudong.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.View;
public class PaintCycle extends View {
private int cWidth;
private int cHeight;
private Path path = new Path();
private Path pathLeft = new Path();
private Path pathRight = new Path();
private Path pathTop = new Path();
private Path pathBottom = new Path();
private Paint fillPaint = new Paint();
private Paint sidePaint = new Paint();
private Paint pointPaint = new Paint();
public static PaintCycle INSTANCE;
int[] centerPX = new int[2];
private int offsetX;
private int offsetY;
private int moveX;
private int moveY;
public PaintCycle(Context context) {
super(context);
INSTANCE = this;
this.cWidth = (910 / 2);
android精确取点组件(实用地图上取点瞄准)
最新推荐文章于 2022-07-06 09:37:16 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)