有没有一种方法来禁用ActionBar的显示/隐藏动画? [英] Is there a way to disable ActionBar's show/hide animation?

查看:631
本文介绍了有没有一种方法来禁用ActionBar的显示/隐藏动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了这个问题:

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.

这篇关于有没有一种方法来禁用ActionBar的显示/隐藏动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆