How to use SwipeRefresh layout ProgressBar circle

425 views Asked by At

I would like to use this ProgressBar, instead of regular one, which is used in SwipeRefresh layout.

enter image description here

Is it part of v4 support or?

2

There are 2 answers

1
SAM On

yes you can do it programmatically

 mSwiperefreshLayout.post(new Runnable() {
            @Override
            public void run() {
                mSwiperefreshLayout.setRefreshing(true);
            }
        });

just use the above code where currenting you are calling the progressbar.

0
Hardik Amal On

Have a look at this sample app! It provides the same custom progressbar which is there in swipe refresh layout...