MaterialLoadingProgressBar icon indicating copy to clipboard operation
MaterialLoadingProgressBar copied to clipboard

Can't change progress color

Open AnDrOiD-73 opened this issue 9 years ago • 4 comments

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'

AnDrOiD-73 avatar Apr 23 '15 16:04 AnDrOiD-73

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.

lsjwzh avatar Apr 25 '15 11:04 lsjwzh

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!

TakWolf avatar Dec 07 '15 05:12 TakWolf

Use setColorSchemeResources(), not setColorSchemeColors(). I made the same mistake and changing that fixed it for me.

shasha1334 avatar Jan 13 '16 16:01 shasha1334

Is there a way to set array of colors to progress circle through xml attributes?Without extra function setColorSchemeResources().

anshulkabra avatar Oct 14 '16 12:10 anshulkabra