public class SpenContextMenuItemInfo extends Object
SpenContextMenuItemInfo(int id, String name, boolean enable), can easily define a menu item
accordingly.| Modifier and Type | Field and Description |
|---|---|
Drawable |
drawableBackgroundNormal
Background image for normal state of context menu item.
|
Drawable |
drawableBackgroundPressed
Background image for pressed state of context menu item.
|
Drawable |
drawableDisableItem
Image for disabled context menu item.
|
Drawable |
drawableNormalItem
Image for normal context menu item.
|
boolean |
enable
Enabled state.
|
int |
id
Menu item ID.
|
String |
name
Menu item string.
|
| Constructor and Description |
|---|
SpenContextMenuItemInfo()
Basic ContextMenuItemInfo constructor
|
SpenContextMenuItemInfo(int id,
Drawable drawableNormalItem,
Drawable drawableDisableItem,
Drawable drawableBackgroundNormal,
Drawable drawableBackgroundPressed,
String name,
boolean enable)
Creates an SpenContextMenuItemInfo instance, with the specified menu item name and ID, an image for the normal
state, an image for the disabled state, a background image for the normal state, and a background image for the
pressed state.
|
SpenContextMenuItemInfo(int id,
Drawable drawableItem,
Drawable drawableBackgroundNormal,
Drawable drawableBackgroundPressed,
String name,
boolean enable)
Creates an SpenContextMenuItemInfo instance, with the specified menu item name and ID, an image for the normal
state, a background image for the normal state, and a background image for the pressed state.values.
|
SpenContextMenuItemInfo(int id,
Drawable drawableItem,
String name,
boolean enable)
Creates an SpenContextMenuItemInfo instance, with the specified menu item name and ID, and an image for the
normal state,
|
SpenContextMenuItemInfo(int id,
String name,
boolean enable)
Creates an SpenContextMenuItemInfo instance, with the specified menu item name and ID.
|
public int id
public String name
public Drawable drawableNormalItem
public Drawable drawableDisableItem
public Drawable drawableBackgroundNormal
public Drawable drawableBackgroundPressed
public boolean enable
public SpenContextMenuItemInfo()
SpenContextMenuItemInfo(int id, String name, boolean enable)public SpenContextMenuItemInfo(int id,
String name,
boolean enable)
id - The menu item ID.name - The menu item name.enable - Set to true to enable the menu item, set to false to disable the menu item.SpenContextMenuItemInfo()public SpenContextMenuItemInfo(int id,
Drawable drawableItem,
String name,
boolean enable)
id - The menu item ID.drawableItem - The menu item image for the normal state.name - The menu item name.enable - Set to true to enable the menu item, set to false to disable the menu item.SpenContextMenuItemInfo()public SpenContextMenuItemInfo(int id,
Drawable drawableItem,
Drawable drawableBackgroundNormal,
Drawable drawableBackgroundPressed,
String name,
boolean enable)
id - The menu item ID.drawableItem - The menu item image for the normal state.drawableBackgroundNormal - The background image for the normal state of the context menu item.drawableBackgroundPressed - The background image for the pressed state of the context menu item.name - The menu item name.enable - Set to true to enable the menu item, set to false to disable the menu item.SpenContextMenuItemInfo()public SpenContextMenuItemInfo(int id,
Drawable drawableNormalItem,
Drawable drawableDisableItem,
Drawable drawableBackgroundNormal,
Drawable drawableBackgroundPressed,
String name,
boolean enable)
id - The menu item ID.drawableNormalItem - The menu item image for the normal state.drawableDisableItem - The menu item image for the disabled state.drawableBackgroundNormal - The background image for the normal state of the context menu item.drawableBackgroundPressed - The background image for the pressed state of the context menu item.name - The menu item name.enable - Set to true to enable the menu item, set to false to disable the menu item.SpenContextMenuItemInfo()