diff --git a/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java b/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java index dd5d246..1f089e6 100755 --- a/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java +++ b/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java @@ -61,8 +61,8 @@ private void init(Context context, AttributeSet attrs) { strokeWidth = typedArray.getDimension(R.styleable.CircularProgressBar_cpb_progressbar_width, strokeWidth); backgroundStrokeWidth = typedArray.getDimension(R.styleable.CircularProgressBar_cpb_background_progressbar_width, backgroundStrokeWidth); // Color - color = typedArray.getInt(R.styleable.CircularProgressBar_cpb_progressbar_color, color); - backgroundColor = typedArray.getInt(R.styleable.CircularProgressBar_cpb_background_progressbar_color, backgroundColor); + color = typedArray.getColor(R.styleable.CircularProgressBar_cpb_progressbar_color, color); + backgroundColor = typedArray.getColor(R.styleable.CircularProgressBar_cpb_background_progressbar_color, backgroundColor); } finally { typedArray.recycle(); }