rey5137 / material

A library to bring fully animated Material Design components to pre-Lolipop Android.
http://rey5137.com/material/
Apache License 2.0
6k stars 1.32k forks source link

Unable to change Stroke Color #204

Closed sibidharan closed 8 years ago

sibidharan commented 9 years ago

This is my code. I want the stroke color in white, but it appears in my colorPrimary. Please help.

This is my code.

<com.rey.material.widget.ProgressView
        android:id="@+id/view"
        android:layout_width="48dp"
        android:layout_height="48dp"
        app:pv_progressStyle="@style/Material.Drawable.CircularProgress"
        app:pv_progressMode="indeterminate"
        app:pv_autostart="true"
        app:pv_circular="true"
        app:cpd_strokeColor="#ffffff"
        android:layout_above="@+id/textView2"
        android:layout_alignLeft="@+id/textView2"
        android:layout_alignStart="@+id/textView2" />
rey5137 commented 9 years ago

You should create your own CircularProgressDrawable style (you can extend from Material.Drawable.CircularProgress style) and set it to pv_progressStyle attribute. ProgressView doesn't support attributes of ProgressDrawable directly.

sibidharan commented 9 years ago

Please explain more, I am an amateur!