AuditProgressView
AuditProgressView copied to clipboard
大佬你onDraw方法里有创建对象哦,是不是可以再优化一下
if (mIsCurrentComplete) { audit_drawBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.audit_complete); } else { audit_drawBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.audit_uncomplete); }
TextPaint tp = new TextPaint();
Point point = new Point(width / 2, dp2px(getContext(), 70));
嗯 你的细节感很强,这个确实可以优化。我的这个项目,其实就是提供一个思路,如果要商用,肯定是要完善的。