FileDocCategorySizeDatePackage
ExpandedMenuView.javaAPI DocAndroid 5.1 API2983Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.view.menu

ExpandedMenuView

public final class ExpandedMenuView extends android.widget.ListView implements android.widget.AdapterView.OnItemClickListener, android.support.v7.internal.view.menu.MenuBuilder.ItemInvoker, android.support.v7.internal.view.menu.MenuView
The expanded menu view is a list-like menu with all of the available menu items. It is opened by the user clicking no the 'More' button on the icon menu view.
hide

Fields Summary
private static final int[]
TINT_ATTRS
private android.support.v7.internal.view.menu.MenuBuilder
mMenu
private int
mAnimations
Default animations for this menu
Constructors Summary
public ExpandedMenuView(android.content.Context context, android.util.AttributeSet attrs)


         
        this(context, attrs, android.R.attr.listViewStyle);
    
public ExpandedMenuView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)

        super(context, attrs);
        setOnItemClickListener(this);

        TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, attrs, TINT_ATTRS,
                defStyleAttr, 0);
        if (a.hasValue(0)) {
            setBackgroundDrawable(a.getDrawable(0));
        }
        if (a.hasValue(1)) {
            setDivider(a.getDrawable(1));
        }
        a.recycle();
    
Methods Summary
public intgetWindowAnimations()

        return mAnimations;
    
public voidinitialize(android.support.v7.internal.view.menu.MenuBuilder menu)

        mMenu = menu;
    
public booleaninvokeItem(MenuItemImpl item)

        return mMenu.performItemAction(item, 0);
    
protected voidonDetachedFromWindow()

        super.onDetachedFromWindow();

        // Clear the cached bitmaps of children
        setChildrenDrawingCacheEnabled(false);
    
public voidonItemClick(android.widget.AdapterView parent, android.view.View v, int position, long id)

        invokeItem((MenuItemImpl) getAdapter().getItem(position));