ActionBar.OnNavigationListener

Added in 1.1.0
Deprecated in 1.1.0

public interface ActionBar.OnNavigationListener


Listener interface for ActionBar navigation events.

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

onNavigationItemSelected

Added in 1.1.0
Deprecated in 1.1.0
abstract boolean onNavigationItemSelected(int itemPosition, long itemId)

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

Parameters
int itemPosition

Position of the item clicked.

long itemId

ID of the item clicked.

Returns
boolean

True if the event was handled, false otherwise.