Skip to content

Commit

Permalink
Merge pull request #12 from recruit-lifestyle/Issue_2
Browse files Browse the repository at this point in the history
Fixed #2 Custom color - instead of blue
  • Loading branch information
amyu committed Nov 16, 2015
2 parents 6d0e117 + 18eca35 commit 9dd388a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ public void setWaveColor(int color){
mWaveView.setWaveColor(color);
}

public void setWaveARGBColor(int a, int r, int g, int b) {
mWaveView.setWaveARGBColor(a, r, g, b);
}

private static int makeMeasureSpecExactly(int length) {
return MeasureSpec.makeMeasureSpec(length, MeasureSpec.EXACTLY);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,4 +644,9 @@ public void setWaveColor(int color) {
mPaint.setColor(color);
invalidate();
}

public void setWaveARGBColor(int a, int r, int g, int b){
mPaint.setARGB(a,r,g,b);
invalidate();
}
}

0 comments on commit 9dd388a

Please sign in to comment.