castorflex / SmoothProgressBar

A small Android library allowing you to have a smooth and customizable horizontal or circular indeterminate ProgressBar
Apache License 2.0
4.51k stars 1k forks source link

Always starts activated #92

Open guness opened 7 years ago

guness commented 7 years ago

Here is my configuration:

<style name="SVProgressBar" parent="SmoothProgressBar">
        <item name="spb_stroke_separator_length">12dp</item>
        <item name="spb_sections_count">2</item>
        <item name="spb_speed">1.2</item>
        <item name="spb_colors">@array/progressColors</item>
        <item name="spb_progressiveStart_speed">2</item>
        <item name="spb_progressiveStop_speed">4.4</item>
        <item name="spb_interpolator">spb_interpolator_acceleratedecelerate</item>
        <item name="spb_progressiveStart_activated">false</item>
    </style>
<fr.castorflex.android.smoothprogressbar.SmoothProgressBar
        android:id="@+id/progressBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:indeterminate="true"
        app:layout_anchor="@+id/content_search" />

it always starts activated. Device: android 7.1 emulator

mehdi-sol commented 7 years ago

I second this.

castorflex commented 7 years ago

Hello, I don't really get what the issue is. Is it that the indeterminate progress always shows up? Or is it that the progressiveStart is always enabled?

mehdi-sol commented 7 years ago

Hey man.

Yes. I think it makes more sense for the indeterminate progress bar to be started explicitly.

utsavmadaan1995 commented 7 years ago

Same problem when activity comes in foreground 1st time SmoothProgressBar is activated+visible hence i explicitly set it to progressiveStop in onCreate which results in ProgressiveStop is visible until progressiveStop ends on activity coming in foreground

panmona commented 6 years ago

seems similar to #35