Closed parsidev closed 9 years ago
Default style of CircularProgressDrawable depend on theme of AppCompat. Did you already use that? Here is an example:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/colorPrimary</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">@color/colorAccent</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight & colorSwitchThumbNormal. -->
</style>
And if you want to change the color of progress, you should create a custom style extend from Material.Drawable.CircularProgress
style, change value of cpd_strokeColor
attribute and set this style to pv_progressStyle
attribute of ProgressView.
Thanks a lot, it's working.
i use this code
but when run app i receive this error log
please help me!