Android APIs
public static interface

ActionBar.OnMenuVisibilityListener

android.support.v7.app.ActionBar.OnMenuVisibilityListener

Class Overview

Listener for receiving events when ActionBar items are shown or hidden.

Note: This interface is included in the support library for compatibility with API level 7 and higher. If you're developing your app for API level 11 and higher only, you should instead use the framework ActionBar.OnMenuVisibilityListener interface.

Summary

Public Methods
abstract void onMenuVisibilityChanged(boolean isVisible)
Called when an action bar menu is shown or hidden.

Public Methods

public abstract void onMenuVisibilityChanged (boolean isVisible)

Called when an action bar menu is shown or hidden. Applications may want to use this to tune auto-hiding behavior for the action bar or pause/resume video playback, gameplay, or other activity within the main content area.

Parameters
isVisible True if an action bar menu is now visible, false if no action bar menus are visible.