Last active
November 22, 2016 16:09
-
-
Save enginebai/d2f500365fc0a9148b3ed6417b36012a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void init(Context context, AttributeSet attrs) { | |
// ... | |
mArcPaint = new Paint(); | |
mArcPaint.setColor(arcColor); | |
mArcPaint.setAntiAlias(true); | |
mArcPaint.setStyle(Paint.Style.STROKE); | |
mArcPaint.setStrokeWidth(mArcWidth); | |
mProgressPaint = new Paint(); | |
mProgressPaint.setColor(progressColor); | |
mProgressPaint.setAntiAlias(true); | |
mProgressPaint.setStyle(Paint.Style.STROKE); | |
mProgressPaint.setStrokeWidth(mProgressWidth); | |
mTextPaint = new Paint(); | |
mTextPaint.setColor(textColor); | |
mTextPaint.setAntiAlias(true); | |
mTextPaint.setStyle(Paint.Style.FILL); | |
mTextPaint.setTextSize(mTextSize); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment