I would like to add an indeterminate progress bar to the Honeycomb ActionBar, so that any time the user presses “Refresh”, the refresh icon temporarily turns into an indeterminate progress bar, until the task completes. The Email app does this already, but I can’t figure out how.
Any advice?
Hard to tell exactly how the Email app does it, but you may want to stay simple and just call setIcon with the id of a
StateDrawableXML file, and then just change the state using a Timer.