Library has a configurable stroke witdth for the idle and the progress state#72
Library has a configurable stroke witdth for the idle and the progress state#72diego-gomez-olvera wants to merge 8 commits intodmytrodanylyk:masterfrom
Conversation
|
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 7a0725e 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. |
| } | ||
|
|
||
| public String getCompleteText() { | ||
| public CharSequence getCompleteText() { |
There was a problem hiding this comment.
Please help me. what's wrong with String ?
There was a problem hiding this comment.
CharSequence is more flexible.
E.g. https://developer.android.com/reference/android/text/Spannable implements CharSequence interface, so you can make text with different color, size, style, etc.
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.