Skip to content

Commit

Permalink
Added documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbupt committed Aug 16, 2015
1 parent 71dbb38 commit 93bf739
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,13 @@ public int getBackgroundCircleColor() {

/**
* Sets the background color of the entire Progress Circle.
* Set the color to 0x00000000 (Color.TRANSPARENT) to hide it.
* @param circleColor the color.
*/
public void setFillCircleColor(int circleColor) {
this.mBackgroundCircleColor = circleColor;
setupBackgroundCirclePaint();

}

public int getRimColor() {
Expand Down Expand Up @@ -985,7 +987,9 @@ protected void onDraw(Canvas canvas) {
float degrees = (360f / mMaxValue * mCurrentValue);

//Draw the background circle
canvas.drawArc(mInnerCircleBound, 360, 360, false, mBackgroundCirclePaint);
if (mBackgroundCircleColor > 0) {
canvas.drawArc(mInnerCircleBound, 360, 360, false, mBackgroundCirclePaint);
}
//Draw the rim
if(mRimWidth > 0){
canvas.drawArc(mCircleBounds, 360, 360, false, mRimPaint);
Expand Down

0 comments on commit 93bf739

Please sign in to comment.