内存优化(三):Profile内存检测工具(1)

private float eastYStart = 300f;

private float eastXEnd = 450;

private float eastYEnd = 300;

private float southeastXStart = 335.36f;

private float southeastYStart = 335.34f;

private float southeastXEnd = 406.10f;

private float southeastYEnd = 406.02f;

private float southXStart = 300.03f;

private float southYStart = 345f;

private float southXEnd = 300;

private float southYEnd = 450;

private float southwestXStart = 264.68f;

private float southwestYStart = 335.39f;

private float southwestXEnd = 194.06f;

private float southwestYEnd = 406.19f;

private float westXStart = 250;

private float westYStart = 300;

private float westXEnd = 150;

private float westYEnd = 300;

String colorStr[] = new String[]{

“#ffff00”,

“#ff3300”,

“#ccff00”,

“#ff00cc”,

“#ccffff”,

“#cc99ff”,

“#99ff66”,

“#993300”

};

private ValueAnimator valueAnimator;

private int currentColor = 0;

public IOSStyleLoadingView(Context context, AttributeSet attrs) {

super(context, attrs);

this.mContext = context;

this.mStrokeWidth = UIUtils.dp2px(this.mContext, 5);

}

@Override

protected void onDraw(Canvas canvas) {

super.onDraw(canvas);

Sample test1=new Sample(“测试1”);

Paint paint = new Paint();

paint.setAntiAlias(true);

paint.setStrokeWidth(this.mStrokeWidth);

paint.setStyle(Paint.Style.STROKE);

paint.setStrokeCap(Paint.Cap.ROUND);

Path p0 = new Path();

paint.setColor(Color.parseColor(colorStr[0]));

p0.moveTo(northwestXStart, northwestYStart);

p0.lineTo(northwest

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值