FileDocCategorySizeDatePackage
MenuBuilder_Delegate.javaAPI DocAndroid 5.1 API1568Thu Mar 12 22:22:44 GMT 2015com.android.internal.view.menu

MenuBuilder_Delegate

public class MenuBuilder_Delegate extends Object
Delegate used to provide new implementation of a select few methods of {@link MenuBuilder}

Through the layoutlib_create tool, the original methods of {@code MenuBuilder} have been replaced by calls to methods of the same name in this delegate class.

Fields Summary
Constructors Summary
Methods Summary
static MenuItemImplcreateNewMenuItem(MenuBuilder thisMenu, int group, int id, int categoryOrder, int ordering, java.lang.CharSequence title, int defaultShowAsAction)
The method overrides the instantiation of the {@link MenuItemImpl} with an instance of {@link BridgeMenuItemImpl} so that view cookies may be stored.

        return new BridgeMenuItemImpl(thisMenu, group, id, categoryOrder, ordering, title,
                defaultShowAsAction);