public class RoboSubMenu extends RoboMenu implements android.view.SubMenu
Robolectric implementation of SubMenu
.
Constructor and Description |
---|
RoboSubMenu() |
RoboSubMenu(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
clearHeader() |
android.view.MenuItem |
getItem() |
android.view.SubMenu |
setHeaderIcon(android.graphics.drawable.Drawable icon) |
android.view.SubMenu |
setHeaderIcon(int iconRes) |
android.view.SubMenu |
setHeaderTitle(java.lang.CharSequence title) |
android.view.SubMenu |
setHeaderTitle(int titleRes) |
android.view.SubMenu |
setHeaderView(android.view.View view) |
android.view.SubMenu |
setIcon(android.graphics.drawable.Drawable icon) |
android.view.SubMenu |
setIcon(int iconRes) |
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, findMenuItem, findMenuItemContaining, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupEnabled, setGroupVisible, setQwertyMode, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupDividerEnabled, setGroupEnabled, setGroupVisible, setQwertyMode, size
public RoboSubMenu()
public RoboSubMenu(android.content.Context context)
public android.view.SubMenu setHeaderTitle(int titleRes)
setHeaderTitle
in interface android.view.SubMenu
public android.view.SubMenu setHeaderTitle(java.lang.CharSequence title)
setHeaderTitle
in interface android.view.SubMenu
public android.view.SubMenu setHeaderIcon(int iconRes)
setHeaderIcon
in interface android.view.SubMenu
public android.view.SubMenu setHeaderIcon(android.graphics.drawable.Drawable icon)
setHeaderIcon
in interface android.view.SubMenu
public android.view.SubMenu setHeaderView(android.view.View view)
setHeaderView
in interface android.view.SubMenu
public void clearHeader()
clearHeader
in interface android.view.SubMenu
public android.view.SubMenu setIcon(int iconRes)
setIcon
in interface android.view.SubMenu
public android.view.SubMenu setIcon(android.graphics.drawable.Drawable icon)
setIcon
in interface android.view.SubMenu
public android.view.MenuItem getItem()
getItem
in interface android.view.SubMenu