How to show Indeterminate ProgressBar when Refresh button is pressed in ActionBarSherlock and again show Refresh Button when ViewGroup on refreshed?
Update 1:
I have a answer here which is incomplete. I am placing a bounty on question so that more developers can help build a good answer which can useful to others in future.
How can we show a Indeterminate ProgressBar which looks like the one shown in the image below
It seems like ActionBarSherlock doesn’t provide specific method to animate a refresh MenuItem.
What you can do (by using classic android API) is to use the
setActionView(int resId)method and give the id of a layout with a ProgressBar in it.At the beginning of your refresh action just call :
And when your refresh action is finished call :
Here is a sample of what your layout file refresh_menuitem.xml can have :