By default in Android 3.0+, when ActionBar.hide()/show() are called the bar is animated with a brief fade in/out animation.
There does not seem to be an XML style attribute in this list associated with an animation resource.
Is there some way to change this animation? In my case, I simply want to change the animation time, but is it also possible to have a sliding animation?
No.
At least not in 3.0, 3.1, or 3.2. If you look at the decompiled sources of
com.android.internal.app.ActionBarImplyou’ll find that the animations are hard-coded.E.g., from 3.2:
UPDATE
Same goes for ICS and JellyBean