ExpandedMenuViewpublic 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.MenuViewThe 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. |
Fields Summary |
---|
private static final int[] | TINT_ATTRS | private android.support.v7.internal.view.menu.MenuBuilder | mMenu | private int | mAnimationsDefault 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();
|
|