Replacing an ActionBar menu item icon with an indeterminate ProgressBar

后端 未结 6 1002
小蘑菇
小蘑菇 2020-12-30 02:29

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 indet

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 03:16

    I'm using the code provided at the original issue here: https://github.com/JakeWharton/ActionBarSherlock/issues/425

    Except for android:layout_width and android:layout_height (in the actionbar_indeterminate_progress.xml) I use 32dp; as this was the way it was done in ActionBarCompat: http://developer.android.com/resources/samples/ActionBarCompat/res/layout-v11/actionbar_indeterminate_progress.html

提交回复
热议问题