java.lang.Object | ||
↳ | com.neomades.ui.menu.MenuItem | |
↳ | com.neomades.ui.menu.SubMenu |
A MenuItem
which contains other menu items.
Menu items contained in the SubMenu are usually displayed in a dialog that appears when clicking on the SubMenu item itself.
Sub menus do not support nested sub menus.
In Android, menu items inside sub menus can not display images if the Android version is lower than 4.0.
In iOS, menu items inside sub menus can not display images. Be sure to set a text.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SubMenu(Image img)
Constructs a
SubMenu with the image given in parameter. | |||||||||||
SubMenu(int textId)
Constructs a
SubMenu with the text of the id given in parameter. | |||||||||||
SubMenu(int textId, int imageId)
Constructs a
SubMenu with the text and the image of the ids
given in parameter. | |||||||||||
SubMenu(String text)
Constructs a
SubMenu with the text given in parameter. | |||||||||||
SubMenu(String text, Image img)
Constructs an item with the text and the image given in parameter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addItem(MenuItem item)
Adds a menu item to the
SubMenu . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a SubMenu
with the image given in parameter.
From Android 4.0, the image will not be displayed when used as a classic
SubMenu
. Use it as a left or right action instead.
img | the image of the sub menu |
---|
Constructs a SubMenu
with the text of the id given in parameter.
textId | the id of the text |
---|
Constructs a SubMenu
with the text and the image of the ids
given in parameter.
From Android 4.0, the image will not be displayed when used as a classic
SubMenu
. Use it as a left or right action instead.
textId | the id of the text |
---|---|
imageId | the id of the image |
Constructs a SubMenu
with the text given in parameter.
text | the text of the sub menu |
---|
Constructs an item with the text and the image given in parameter.
From Android 4.0, the image will not be displayed when used as a classic
SubMenu
. Use it as a left or right action instead.
text | the text of the sub menu |
---|---|
img | the image of the sub menu |
Adds a menu item to the SubMenu
.
item | the item to add |
---|