0

i want to rotate refresh in actionbarsherlock.previously i was using actionbar and was doing setRefreshActionItemState.

user1340801
  • 423
  • 3
  • 10
  • 21

1 Answers1

0

For refresh state you may try this link to get the answer Refresh menu item animation in ActionBarSherlock..

case R.id.refreshMenuItem:
    isRefreshing = true;
    item.setActionView(R.layout.action_bar_indeterminate_progress);
    ImageView iv = (ImageView) item.getActionView().findViewById(R.id.loadingImageView);
    ((AnimationDrawable) iv.getDrawable()).start();
Community
  • 1
  • 1
  • Thanks for the link..But i need to set back the refresh state some whereelse like after loading something i need to set it back to original state ..That doesn't happen in your link righjt – user1340801 Feb 27 '13 at 08:19