API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Interface android.view.Menu

Removed Methods
Item add(int, int, int) Variation on .add(int, int, CharSequence) that takes a string resource identifier instead of the string itself.
Item add(int, int, int, int) Add a new item to the menu.
Item add(int, int, int, Runnable) Variation on .add(int, int, CharSequence, Runnable) that takes a string resource identifier instead of the string itself.
Item add(int, int, CharSequence) Add a new item to the menu.
Item add(int, int, CharSequence, int) Add a new item to the menu.
Item add(int, int, CharSequence, Runnable) Add a new item to the menu.
SubMenu addSubMenu(int, int, int) Variation on .addSubMenu(int, int, CharSequence) that takes a string resource identifier for the title instead of the string itself.
SubMenu addSubMenu(int, int, int, Drawable) Variation on .addSubMenu(int, int, CharSequence) that takes a string resource identifier for the title instead of the string itself, and a Drawable for the icon.
SubMenu addSubMenu(int, int, CharSequence) Add a new sub-menu to the menu.
SubMenu addSubMenu(int, int, CharSequence, Drawable) Add a new sub-menu to the menu.
SubMenu addSubMenu(int, int, CharSequence, int) Add a new sub-menu to the menu.
int findGroupIndex(int) Get the index of the first menu item that is in the given group.
int findItemIndex(int) Get the index of a menu item that has the given identifier.
Item get(int) Retrieve the menu item object at a particular index.
boolean hasShownItems() Return whether the menu currently has item items that are being shown.
void removeItemAt(int) Remove the item at the given index.
void setDefaultItem(int) Set the item that is initially selected when the menu is displayed.
void setGroupShown(int, boolean) Show or hide all menu items that are in the given group.
void setItemCheckable(int, boolean) Control whether a particular item with the given identifier can display a check mark.
void setItemChecked(int, boolean) Show or hide the check mark for a particular menu item selected by its identifier.
void setItemShown(int, boolean) Show or hide a particular menu item selected by its identifier.
 

Added Methods
MenuItem add(int) Add a new item to the menu.
MenuItem add(int, int, int, int) Variation on .add(int, int, int, CharSequence) that takes a string resource identifier instead of the string itself.
MenuItem add(int, int, int, CharSequence) Add a new item to the menu.
MenuItem add(CharSequence) Add a new item to the menu.
SubMenu addSubMenu(int) Add a new sub-menu to the menu.
SubMenu addSubMenu(int, int, int, CharSequence) Add a new sub-menu to the menu.
SubMenu addSubMenu(CharSequence) Add a new sub-menu to the menu.
boolean hasVisibleItems() Return whether the menu currently has item items that are visible.
void setGroupEnabled(int, boolean) Enable or disable all menu items that are in the given group.
void setGroupVisible(int, boolean) Show or hide all menu items that are in the given group.
 

Changed Methods
int addIntentOptions(int, int, int, ComponentName, Intent[], Intent, int, MenuItem[]) Change in signature from (int, int, ComponentName, Intent[], Intent, int, Item[]) to (int, int, int, ComponentName, Intent[], Intent, int, MenuItem[]).
Add a group of menu items corresponding to actions that can be performed for a particular Intent.
MenuItem findItem(int) Change in return type from Item to MenuItem.
Return the menu item with a particular identifier.
 

Removed Fields
int ALTERNATIVE Category code for menu group and identifier integers that are alternative actions on the data that is currently displayed -- or/add this with your base value.
int APPEND_TO_GROUP Flag for .addIntentOptions: if set, do not automatically remove any existing menu items in the same group.
int CATEGORY_MASK This is the part of a menu group or identifier integer that supplies the category of the item.
int CATEGORY_SHIFT Bit shift of the category portion of the group/identifier integer.
int CONTAINER Category code for menu group and identifier integers that are part of a container -- or/add this with your base value.
int PERFORM_NO_CLOSE Flag for .performShortcut: if set, do not close the menu after executing the shortcut.
int SECONDARY Category code for menu group and identifier integers that are user-supplied secondary (infrequently used) options -- or/add this with your base value.
int SELECTED_ALTERNATIVE Category code for menu group and identifier integers that are alternative actions on the item that is currently selected -- or/add this with your base value.
int SYSTEM Category code for menu group and identifier integers that are provided by the system -- or/add this with your base value.
int USER_MASK This is the part of a menu group or identifier integer that the user can provide.
int USER_SHIFT Bit shift of the user portion of the group/identifier integer.
 

Added Fields
int CATEGORY_ALTERNATIVE Category code for the order integer for items/groups that are alternative actions on the data that is currently displayed -- or/add this with your base value.
int CATEGORY_CONTAINER Category code for the order integer for items/groups that are part of a container -- or/add this with your base value.
int CATEGORY_SECONDARY Category code for the order integer for items/groups that are user-supplied secondary (infrequently used) options -- or/add this with your base value.
int CATEGORY_SYSTEM Category code for the order integer for items/groups that are provided by the system -- or/add this with your base value.
int FLAG_ALWAYS_PERFORM_CLOSE Flag for .performShortcut(int, KeyEvent, int): if set, always close the menu after executing the shortcut.
int FLAG_APPEND_TO_GROUP Flag for .addIntentOptions: if set, do not automatically remove any existing menu items in the same group.
int FLAG_PERFORM_NO_CLOSE Flag for .performShortcut: if set, do not close the menu after executing the shortcut.
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff