Android: ActionBar Item Animation

I want to apply rotation animation to an action in mine ActionBar

. For ActionBar

I am using ActionBarSherlock.

My problem is that in all Solutions I have found (for example Animated Icon for ActionItem ) they get MenuItem

to be animated in onOptionsItemSelected(MenuItem item)

.

But I want to start the animation even before any action is selected. So how can I get it MenuItem

?

+1


source to share


1 answer


Call findItem()

in Menu

, which comes in onCreateOptionsMenu()

.



+7


source







All Articles