public class PowerMenu extends AbstractPowerMenu<PowerMenuItem,MenuListAdapter> implements IMenuItem<PowerMenuItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
PowerMenu.Builder |
adapter, allowTouchBackground, backgroundView, backgroundWindow, contentViewPadding, fixedHeight, footerView, headerView, isShowing, layoutInflater, lifecycleOwner, menuCard, menuItemClickListener, menuListView, menuView, menuWindow, onDismissedListener, showBackground| Modifier | Constructor and Description |
|---|---|
protected |
PowerMenu(android.content.Context context,
AbstractMenuBuilder abstractMenuBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(int position,
PowerMenuItem item) |
void |
addItem(PowerMenuItem item) |
void |
addItemList(java.util.List<PowerMenuItem> itemList) |
void |
clearItems() |
java.util.List<PowerMenuItem> |
getItemList() |
android.widget.ListView |
getListView() |
int |
getSelectedPosition() |
protected void |
initialize(android.content.Context context) |
void |
onDestroy() |
void |
removeItem(int position) |
void |
removeItem(PowerMenuItem item) |
void |
setListView(android.widget.ListView listView) |
void |
setMenuColor(int color) |
void |
setSelectedEffect(boolean effect) |
void |
setSelectedMenuColor(int color) |
void |
setSelectedPosition(int position) |
void |
setSelectedTextColor(int color) |
void |
setTextColor(int color) |
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 PowerMenu(android.content.Context context,
AbstractMenuBuilder abstractMenuBuilder)
protected void initialize(android.content.Context context)
initialize in class AbstractPowerMenu<PowerMenuItem,MenuListAdapter>public void setListView(android.widget.ListView listView)
setListView in interface IMenuItem<PowerMenuItem>public android.widget.ListView getListView()
getListView in interface IMenuItem<PowerMenuItem>public void setSelectedPosition(int position)
setSelectedPosition in interface IMenuItem<PowerMenuItem>public int getSelectedPosition()
getSelectedPosition in interface IMenuItem<PowerMenuItem>public void addItem(PowerMenuItem item)
addItem in interface IMenuItem<PowerMenuItem>public void addItem(int position,
PowerMenuItem item)
addItem in interface IMenuItem<PowerMenuItem>public void addItemList(java.util.List<PowerMenuItem> itemList)
addItemList in interface IMenuItem<PowerMenuItem>public void removeItem(PowerMenuItem item)
removeItem in interface IMenuItem<PowerMenuItem>public void removeItem(int position)
removeItem in interface IMenuItem<PowerMenuItem>public void clearItems()
clearItems in interface IMenuItem<PowerMenuItem>public java.util.List<PowerMenuItem> getItemList()
getItemList in interface IMenuItem<PowerMenuItem>public void onDestroy()
public void setSelectedEffect(boolean effect)
public void setTextColor(int color)
public void setMenuColor(int color)
public void setSelectedTextColor(int color)
public void setSelectedMenuColor(int color)