to top
Android APIs
public static interface

ActionBar.OnNavigationListener

android.support.v7.app.ActionBar.OnNavigationListener

Class Overview

Listener for receiving ActionBar navigation events.

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.OnNavigationListener interface.

Summary

Public Methods
abstract boolean onNavigationItemSelected(int itemPosition, long itemId)
This method is called whenever a navigation item in your action bar is selected.

Public Methods

public abstract boolean onNavigationItemSelected (int itemPosition, long itemId)

This method is called whenever a navigation item in your action bar is selected.

Parameters
itemPosition Position of the item clicked.
itemId ID of the item clicked.
Returns
  • True if the event was handled, false otherwise.