In previous versions i had this and an timer that would go from 45 seconds (full bar) to 0 (empty bar) with no problem,
<com.dinuscxj.progressbar.CircleProgressBar
android:id="@+id/progress_token"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginBottom="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_mlarge"
android:max="45"
app:line_count="45"
app:line_width="4dp"
app:progress_background_color="@color/progress_bg"
app:progress_end_color="@color/progress_green"
app:progress_start_color="@color/progress_green"
app:progress_stroke_cap="round"
app:progress_stroke_width="4dp"
app:progress_text_color="@android:color/transparent"
app:style="solid_line" />
in current version this is not possible from the xml, i had to do this from the code:
int progress = (100 * seconds) / 45;
progress_token.setProgress(progress);
In previous versions i had this and an timer that would go from 45 seconds (full bar) to 0 (empty bar) with no problem,
in current version this is not possible from the xml, i had to do this from the code: