English | Site Directory

Android - An Open Handset Alliance Project

android.view
public interface

android.view.SubMenu

android.view.SubMenu Menu

Subclass of Menu for submenus

Known Indirect Subclasses

Summary

Constants inherited from interface android.view.Menu

Public Methods

        Item  getItem()
Gets the Menu.Item that represents this submenu in the parent menu.
        void  setHeader(int titleRes)
Sets the header of the submenu to the title given in titleRes resource identifier.
        void  setHeader(CharSequence title)
Sets the header of the submenu to the title given in title.
Methods inherited from interface android.view.Menu

Details

Public Methods

public Item getItem()

Gets the Menu.Item that represents this submenu in the parent menu. Use this for setting additional item attributes.

Returns

  • The Menu.Item that launches the submenu when invoked.

public void setHeader(int titleRes)

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

Parameters

titleRes The string resource identifier used for the title.

public void setHeader(CharSequence title)

Sets the header of the submenu to the title given in title.

Parameters

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