Example usage for android.view Window FEATURE_OPTIONS_PANEL

List of usage examples for android.view Window FEATURE_OPTIONS_PANEL

Introduction

In this page you can find the example usage for android.view Window FEATURE_OPTIONS_PANEL.

Prototype

int FEATURE_OPTIONS_PANEL

To view the source code for android.view Window FEATURE_OPTIONS_PANEL.

Click Source Link

Document

Flag for the "options panel" feature.

Usage

From source file:android.app.Activity.java

/**
 * Declare that the options menu has changed, so should be recreated.
 * The {@link #onCreateOptionsMenu(Menu)} method will be called the next
 * time it needs to be displayed.//from  ww  w  .  ja v  a 2 s . c  o m
 */
public void invalidateOptionsMenu() {
    mWindow.invalidatePanelMenu(Window.FEATURE_OPTIONS_PANEL);
}

From source file:android.app.Activity.java

/**
 * Programmatically opens the options menu. If the options menu is already
 * open, this method does nothing.//from w w  w.j  av  a 2  s.  c o m
 */
public void openOptionsMenu() {
    mWindow.openPanel(Window.FEATURE_OPTIONS_PANEL, null);
}

From source file:android.app.Activity.java

/**
 * Progammatically closes the options menu. If the options menu is already
 * closed, this method does nothing./*from  www. ja va 2  s . co m*/
 */
public void closeOptionsMenu() {
    mWindow.closePanel(Window.FEATURE_OPTIONS_PANEL);
}