public class CustomPowerMenu<T,E extends MenuBaseAdapter<T>> extends AbstractPowerMenu<T,E> implements IMenuItem<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomPowerMenu.Builder<T,E extends MenuBaseAdapter<T>> |
adapter, allowTouchBackground, backgroundView, backgroundWindow, contentViewPadding, fixedHeight, footerView, headerView, isShowing, layoutInflater, lifecycleOwner, menuCard, menuItemClickListener, menuListView, menuView, menuWindow, onDismissedListener, showBackground| Modifier | Constructor and Description |
|---|---|
protected |
CustomPowerMenu(android.content.Context context,
AbstractMenuBuilder abstractMenuBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(int position,
T item) |
void |
addItem(java.lang.Object item) |
void |
addItemList(java.util.List<T> itemList) |
void |
clearItems() |
java.util.List<T> |
getItemList() |
android.widget.ListView |
getListView() |
int |
getSelectedPosition() |
protected void |
initialize(android.content.Context context) |
void |
onDestroy() |
void |
removeItem(int position) |
void |
removeItem(T item) |
void |
setListView(android.widget.ListView listView) |
void |
setSelectedPosition(int position) |
dismiss, getAdapter, getContentViewHeight, getContentViewPadding, getContentViewWidth, getFooterView, getHeaderView, getMeasuredContentView, getMenuListView, isShowing, setAnimation, setAnimationStyle, setBackgroundAlpha, setBackgroundColor, setDivider, setDividerHeight, setFocusable, setFooterView, setFooterView, setFooterView, setHeaderView, setHeaderView, setHeaderView, setHeight, setIsClipping, setLifecycleOwner, setMeasuredHeight, setMenuRadius, setMenuShadow, setOnBackgroundClickListener, setOnDismissedListener, setOnMenuItemClickListener, setSelection, setShowBackground, setTouchInterceptor, setWidth, showAsAnchorCenter, showAsAnchorLeftBottom, showAsAnchorLeftTop, showAsAnchorRightBottom, showAsAnchorRightTop, showAsDropDown, showAsDropDown, showAtCenter, showAtCenter, showAtLocation, showAtLocation, showPopupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentViewHeightprotected CustomPowerMenu(android.content.Context context,
AbstractMenuBuilder abstractMenuBuilder)
protected void initialize(android.content.Context context)
initialize in class AbstractPowerMenu<T,E extends MenuBaseAdapter<T>>public void setListView(android.widget.ListView listView)
setListView in interface IMenuItem<T>public android.widget.ListView getListView()
getListView in interface IMenuItem<T>public void setSelectedPosition(int position)
setSelectedPosition in interface IMenuItem<T>public int getSelectedPosition()
getSelectedPosition in interface IMenuItem<T>public void addItemList(java.util.List<T> itemList)
addItemList in interface IMenuItem<T>public void removeItem(T item)
removeItem in interface IMenuItem<T>public void removeItem(int position)
removeItem in interface IMenuItem<T>public void clearItems()
clearItems in interface IMenuItem<T>public java.util.List<T> getItemList()
getItemList in interface IMenuItem<T>public void onDestroy()