Example usage for android.app ActionBar setShowHideAnimationEnabled

List of usage examples for android.app ActionBar setShowHideAnimationEnabled

Introduction

In this page you can find the example usage for android.app ActionBar setShowHideAnimationEnabled.

Prototype

@UnsupportedAppUsage
public void setShowHideAnimationEnabled(boolean enabled) 

Source Link

Usage

From source file:android.support.v7.app.AppCompatDelegateImplV7.java

@Override
public void onStop() {
    ActionBar ab = getSupportActionBar();
    if (ab != null) {
        ab.setShowHideAnimationEnabled(false);
    }/*from ww w  .java 2 s. c o  m*/
}

From source file:android.support.v7.app.AppCompatDelegateImplV7.java

@Override
public void onPostResume() {
    ActionBar ab = getSupportActionBar();
    if (ab != null) {
        ab.setShowHideAnimationEnabled(true);
    }/*from   w  w w .j ava  2s .  com*/
}