IT. Expert System.

Android Reference

ListContextMenu


android.view

Class ListContextMenu

    • Constructor Detail

      • ListContextMenu

        public ListContextMenu()
    • Method Detail

      • onCreateContextMenu

        public void onCreateContextMenu(ContextMenu menu,
                               View v,
                               ContextMenu.ContextMenuInfo menuInfo)
        Description copied from class: Activity
        Called when a context menu for the view is about to be shown. Unlike Activity.onCreateOptionsMenu(Menu), this will be called every time the context menu is about to be shown and should be populated for the view (or item inside the view for AdapterView subclasses, this can be found in the menuInfo)).

        Use Activity.onContextItemSelected(android.view.MenuItem) to know when an item has been selected.

        It is not safe to hold onto the context menu after this method returns. Called when the context menu for this view is being built. It is not safe to hold onto the menu after this method returns.

        Specified by:
        onCreateContextMenu in interface View.OnCreateContextMenuListener
        Overrides:
        onCreateContextMenu in class Activity
        Parameters:
        menu - The context menu that is being built
        v - The view for which the context menu is being built
        menuInfo - Extra information about the item for which the context menu should be shown. This information will vary depending on the class of v.
      • onOptionsItemSelected

        public boolean onOptionsItemSelected(MenuItem item)
        Description copied from class: Activity
        This hook is called whenever an item in your options menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing without those other facilities.

        Derived classes should call through to the base class for it to perform the default menu handling.

        Overrides:
        onOptionsItemSelected in class Activity
        Parameters:
        item - The menu item that was selected.
        Returns:
        boolean Return false to allow normal menu processing to proceed, true to consume it here.
        See Also:
        Activity.onCreateOptionsMenu(android.view.Menu)
      • onOptionsMenuClosed

        public void onOptionsMenuClosed(Menu menu)
        Description copied from class: Activity
        This hook is called whenever the options menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).
        Overrides:
        onOptionsMenuClosed in class Activity
        Parameters:
        menu - The options menu as last shown or first initialized by onCreateOptionsMenu().
      • onContextItemSelected

        public boolean onContextItemSelected(MenuItem item)
        Description copied from class: Activity
        This hook is called whenever an item in a context menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing without those other facilities.

        Use MenuItem.getMenuInfo() to get extra information set by the View that added this menu item.

        Derived classes should call through to the base class for it to perform the default menu handling.

        Overrides:
        onContextItemSelected in class Activity
        Parameters:
        item - The context menu item that was selected.
        Returns:
        boolean Return false to allow normal context menu processing to proceed, true to consume it here.
      • onContextMenuClosed

        public void onContextMenuClosed(Menu menu)
        Description copied from class: Activity
        This hook is called whenever the context menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).
        Overrides:
        onContextMenuClosed in class Activity
        Parameters:
        menu - The context menu that is being closed.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 11517 / . Delta: 0.08459 с