English | Site Directory

Android - An Open Handset Alliance Project

android.view
public interface

android.view.ContextMenu

android.view.ContextMenu Menu

Extension of Menu for context menus providing functionality to modify the header of the context menu.

Known Indirect Subclasses

Summary

Constants inherited from interface android.view.Menu

Public Methods

        void  setHeader(View headerView)
Sets the header of the context menu to the View given in headerView.
        void  setHeader(int titleRes, Drawable icon)
Sets the header of the context menu to the title given in titleRes resource identifier and the icon given in icon Drawable.
        void  setHeader(int titleRes)
Sets the header of the context menu to the title given in titleRes resource identifier.
        void  setHeader(CharSequence title, int iconRes)
Sets the header of the context menu to the title given in title and the icon given in iconRes resource id.
        void  setHeader(int titleRes, int iconRes)
Sets the header of the context menu to the title given in titleRes resource identifier and the icon given in iconRes resource id.
        void  setHeader(CharSequence title)
Sets the header of the context menu to the title given in title.
        void  setHeader(CharSequence title, Drawable icon)
Sets the header of the context menu to the title given in title and the icon given in icon Drawable.
Methods inherited from interface android.view.Menu

Details

Public Methods

public void setHeader(View headerView)

Sets the header of the context menu to the View given in headerView.

Parameters

headerView The View used for the header.

public void setHeader(int titleRes, Drawable icon)

Sets the header of the context menu to the title given in titleRes resource identifier and the icon given in icon Drawable.

Parameters

titleRes The resource identifier used for the title.
icon The Drawable used for the icon.

public void setHeader(int titleRes)

Sets the header of the context menu to the title given in titleRes resource identifier.

Parameters

titleRes The string resource identifier used for the title.

public void setHeader(CharSequence title, int iconRes)

Sets the header of the context menu to the title given in title and the icon given in iconRes resource id.

Parameters

title The character sequence used for the title.
iconRes The resource identifier used for the icon.

public void setHeader(int titleRes, int iconRes)

Sets the header of the context menu to the title given in titleRes resource identifier and the icon given in iconRes resource id.

Parameters

titleRes The resource identifier used for the title.
iconRes The resource identifier used for the icon.

public void setHeader(CharSequence title)

Sets the header of the context menu to the title given in title.

Parameters

title The character sequence used for the title.

public void setHeader(CharSequence title, Drawable icon)

Sets the header of the context menu to the title given in title and the icon given in icon Drawable.

Parameters

title The character sequence used for the title.
icon The Drawable used for the icon.
Build m5-rc15g - 14 May 2008 12:50