How can I get a circular progress bar in Fresco simple drawee view while image is not yet loaded?

639 views Asked by At

I have used the following code :

<com.facebook.drawee.view.SimpleDraweeView
            android:id="@+id/sdv_single_image"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            fresco:actualImageScaleType="fitCenter"
            fresco:failureImageScaleType="center"
            fresco:progressBarImage="@drawable/spinner_1"
            fresco:progressBarImageScaleType="fitCenter"
            fresco:retryImage="@drawable/spinner_1"
            fresco:retryImageScaleType="fitCenter" />

But it didn't work in few cases.

I want that progress bar to be shown till the images get fully loaded from web service.It works when I use same above code for circular drawee view but not applicable for others.

Any help is appreciable. Thanks!

0

There are 0 answers