English | Site Directory

Android - An Open Handset Alliance Project

android.view
public static interface

android.view.Menu.OnClickListener

android.view.Menu.OnClickListener

Interface to find out when a menu item is invoked.

Summary

Public Methods

        boolean  onClick(Item item)
Called when a menu item has been invoked.

Details

Public Methods

public boolean onClick(Item item)

Called when a menu item has been invoked. This is the first code that is executed; if it returns true, no other callbacks will be used.

Parameters

item The menu item that was invoked.

Returns

  • Return true to consume this click and prevent others from seeing it.
Build m5-rc15g - 14 May 2008 12:50