Skip to content

Instantly share code, notes, and snippets.

@patrick-elmquist
Last active July 12, 2017 13:26
Show Gist options
  • Save patrick-elmquist/b9784ae165588ef2baadd953f9edd200 to your computer and use it in GitHub Desktop.
Save patrick-elmquist/b9784ae165588ef2baadd953f9edd200 to your computer and use it in GitHub Desktop.
Frame by frame #5
@Override
protected void onDraw(Canvas canvas) {
// 1. The size of the base circle
// 2. Where the arc starts in degrees
// 3. The size of the arc in degrees, starting at #2
// 4. If the arc should be drawn as a pie, false makes it a stroke
// 5. The paint to use
canvas.drawArc(mArcBounds, mArcStart, mArcSize, false, mPaint);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment