安卓:动作条项目动画动作、项目、动画

由网友(o?n?l?y?。_____浮夸)分享简介:我想一个旋转动画应用到一个动作在我的动作条。对于使用ActionBarSherlock 动作条 I'm。I want to apply a rotate Animation to an action in my ActionBar. For the ActionBar I´m using ActionBarSherl...

我想一个旋转动画应用到一个动作在我的动作条。对于使用ActionBarSherlock 动作条 I'm。

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

我的问题是,在所有的解决方案,我发现(如动画图标ActionItem ) 他们所得到的菜单项这应 onOptionsItemSelected动画(菜单项项目)

My problem is, that in all Solutions I found (e.g. 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?

推荐答案

呼叫则findItem()菜单提供给 onCreateOptionsMenu()

阅读全文

相关推荐

最新文章