public class SwipeMenu
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SwipeMenu.OrientationMode |
| Modifier and Type | Field and Description |
|---|---|
static int |
HORIZONTAL |
static int |
VERTICAL |
| Constructor and Description |
|---|
SwipeMenu(SwipeMenuLayout menuLayout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(SwipeMenuItem item) |
java.util.List<SwipeMenuItem> |
getMenuItems() |
int |
getOrientation()
Get the menu mOrientation.
|
boolean |
hasMenuItems() |
void |
removeMenuItem(SwipeMenuItem item) |
void |
setOpenPercent(float openPercent)
Set a percentage.
|
void |
setOrientation(int orientation)
Set the menu mOrientation.
|
void |
setScrollerDuration(int scrollerDuration)
The duration of the set.
|
public static final int HORIZONTAL
public static final int VERTICAL
public SwipeMenu(SwipeMenuLayout menuLayout)
public void setOpenPercent(float openPercent)
openPercent - such as 0.5F.public void setScrollerDuration(int scrollerDuration)
scrollerDuration - such 500.public void setOrientation(int orientation)
orientation - use HORIZONTAL or VERTICAL.HORIZONTAL,
VERTICALpublic int getOrientation()
HORIZONTAL or VERTICAL.public void addMenuItem(SwipeMenuItem item)
public void removeMenuItem(SwipeMenuItem item)
public java.util.List<SwipeMenuItem> getMenuItems()
public boolean hasMenuItems()