circular-progress-button
circular-progress-button copied to clipboard
Library has a configurable stroke witdth for the idle and the progress state
It is convenient to be able to tune the stroke width when the button is shown as idle and when a progress indicator is shown.
The library supports right now custom properties, but they cannot be defined in a theme following this pattern (http://blog.stylingandroid.com/custom-controls-part-3/) due that it ignores the constructor parameter 'int defStyleAttr'. The commit 7a0725ebabcd4e7d93b3f0df15aa104bf4338064 fixes it.
It is normally known if the progress view is going to be determinate or not, so it is handy to have an XML attribute 'cpb_progressIndeterminate' to define it.
It is convenient to support the android attribute text as default for 'cpb_textIdle', as well as support CharSequence given the fact that TextView class hierarchy support it.