library/src/main/java/de/mrapp/android/view/CircularProgressBar.java
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet) {
        TypedArray typedArray =
                getContext().obtainStyledAttributes(attributeSet, R.styleable.CircularProgressBar);

        try {
            obtainColor(typedArray);
            obtainThickness(typedArray);
        } finally {
            typedArray.recycle();
        }
    }
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet) {
        TypedArray typedArray =
                getContext().obtainStyledAttributes(attributeSet, R.styleable.CircularProgressBar);

        try {
            obtainColor(typedArray);
            obtainThickness(typedArray);
        } finally {
            typedArray.recycle();
        }
    }
Obtains the view's attributes from a specific attribute set.

@param attributeSet
The attribute set, the view's attributes should be obtained from, as an instance of
the type {@link AttributeSet} or null, if no attributes should be obtained