public class Rectangle2CircleView extends View {
private static final String PROPERTY_RADIUS = "property_radius";
private static final String PROPERTY_ROTATE = "property_rotate";
private RectF rectF = new RectF();
private int radius = 0;
private Paint backgroundPaint;
private ValueAnimator animator;
private int rotate;
public Rectangle2CircleView(Context context) {
this(context, null);
}
public Rectangle2CircleView(Context context, @Nullable AttributeSet attrs) {
this(context, attrs, 0);
}
public Rectangle2CircleView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
backgroundPaint = new Paint();
backgroundPaint.setDither(true);
backgroundPaint.setStrokeWidth(5);
backgroundPain