Skip to content

Commit 4740de4

Browse files
authored
Allow to dynamically change color
The color is currently only customizable via the xml, as using setColor() isn't actually changing the Paint...
1 parent c40e5c1 commit 4740de4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vumeterlibrary/src/main/java/io/gresse/hugo/vumeterlibrary/VuMeterView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ public int getColor() {
232232
*/
233233
public void setColor(int color) {
234234
mColor = color;
235+
mPaint.setColor(mColor);
235236
}
236237

237238
/**

0 commit comments

Comments
 (0)