Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable ActionBar's show/hide animation?

I've seen this question:

Changing the ActionBar hide animation?

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

like image 733
Violet Giraffe Avatar asked Feb 27 '13 15:02

Violet Giraffe


People also ask

How do I turn off screen animation?

Open Settings . Scroll down and select Accessibility. Scroll down to Display and tap Text and display. Tap the toggle switch for Remove animations to turn it on.

How to disable Action bar Android?

If you want to hide Action Bar from the entire application (from all Activities and fragments), then you can use this method. Just go to res -> values -> styles. xml and change the base application to “Theme. AppCompat.

How remove Action bar Android studio?

AppCompat. NoActionBar”. If we want to remove the ActionBar only from specific activities, we can create a child theme with the AppTheme as it's parent, set windowActionBar to false and windowNoTitle to true and then apply this theme on an activity level by using the android:theme attribute in the AndroidManifest.


1 Answers

You can now do this,

getSupportActionBar().setShowHideAnimationEnabled(false);
like image 192
Tyler Pfaff Avatar answered Oct 06 '22 05:10

Tyler Pfaff