有没有一种方法来禁用ActionBar的显示/隐藏动画?方法来、动画、ActionBar

2023-09-12 02:16:43 作者:除了死亡所有离开都是背叛

我已经看到了这个问题:

I've seen this question:

更改动作条隐藏动画?

但它并没有说是否有可能完全禁用动画。

But it doesn't say whether it's possible to disable animation altogether.

推荐答案

如果你使用ActionBarSherlock,那么你可以做到这一点。见ActionBarImpl类,它已经setShowHideAnimationEnabled(启用boolean)方法。

If you use ActionBarSherlock then you can do it. See ActionBarImpl class, it has setShowHideAnimationEnabled(boolean enabled) method.