简体   繁体   中英

Android: ActionBar Item Animation

I want to apply a rotate Animation to an action in my ActionBar . For the ActionBar I´m using ActionBarSherlock.

My problem is, that in all Solutions I found (eg Animated Icon for ActionItem ) they are getting the MenuItem which shall be animated in onOptionsItemSelected(MenuItem item) .

But I want to be able to start the animation even BEFORE some action is selected. So how can I get the MenuItem ?

在提供给onCreateOptionsMenu()Menu上调用findItem() onCreateOptionsMenu()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM