MaterialLoadingProgressBar
MaterialLoadingProgressBar copied to clipboard
Can't change progress color
Thank you for the library!
I can't change progress color.
<com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar
android:id="@+id/mv_file_progressbar"
app:mlpb_show_arrow="false"
app:mlpb_enable_circle_background="true"
app:mlpb_progress_stoke_width="4dp"
app:mlpb_progress_text_visibility="visible"
app:mlpb_progress_color="#566da9"
app:mlpb_background_color="@android:color/white"
android:layout_width="40dp"
android:layout_height="40dp" />
I set progress color, but it still black color. Android studio 1.2 beta. Dependencies:
compile 'com.android.support:support-v13:21.0.3'
compile 'com.lsjwzh:materialloadingprogressbar:0.5.3-RELEASE'
thx for your report, i have fixed it. Before 0.5.4-release become valid in maven,you can use progress.setColorSchemeResources(android.R.color.holo_green_light) instead.
i have the same problem.
i have user 0.5.8-RELEASE, the color is black.
circleProgressBar.setColorSchemeColors(R.color.mdrl_red, R.color.mdrl_green, R.color.mdrl_blue, R.color.mdrl_yellow);
or
app:mlpb_progress_color="@color/mdrl_red"
do not work!
Use setColorSchemeResources(), not setColorSchemeColors(). I made the same mistake and changing that fixed it for me.
Is there a way to set array of colors to progress circle through xml attributes?Without extra function setColorSchemeResources().