English | Site Directory

Android - An Open Handset Alliance Project

android.view
public static interface

android.view.Menu.OnSelectionListener

android.view.Menu.OnSelectionListener

Interface to find out when the selection state of a menu item changes.

Summary

Public Methods

        void  onSelection(Item item, boolean selected)
Called when the selection state of a menu item changes, due to the user moving in or out of it.

Details

Public Methods

public void onSelection(Item item, boolean selected)

Called when the selection state of a menu item changes, due to the user moving in or out of it.

Parameters

item The menu item whose state changed.
selected True if the item is now selected, else false.
Build m5-rc15g - 14 May 2008 12:50