FileDocCategorySizeDatePackage
MenuView.javaAPI DocAndroid 1.5 API4859Wed May 06 22:41:56 BST 2009com.android.internal.view.menu

MenuView

public interface MenuView
Minimal interface for a menu view. {@link #initialize(MenuBuilder, int)} must be called for the menu to be functional.
hide

Fields Summary
Constructors Summary
Methods Summary
public intgetWindowAnimations()
Returns the default animations to be used for this menu when entering/exiting.

return
A resource ID for the default animations to be used for this menu.

public voidinitialize(com.android.internal.view.menu.MenuBuilder menu, int menuType)
Initializes the menu to the given menu. This should be called after the view is inflated.

param
menu The menu that this MenuView should display.
param
menuType The type of this menu, one of {@link MenuBuilder#TYPE_ICON}, {@link MenuBuilder#TYPE_EXPANDED}, {@link MenuBuilder#TYPE_DIALOG}).

public voidupdateChildren(boolean cleared)
Forces the menu view to update its view to reflect the new state of the menu.

param
cleared Whether the menu was cleared or just modified.