Methods Summary |
---|
public void | clearHeader()Clears the header of the submenu.
|
public MenuItem | getItem()Gets the {@link MenuItem} that represents this submenu in the parent
menu. Use this for setting additional item attributes.
|
public android.view.SubMenu | setHeaderIcon(int iconRes)Sets the submenu header's icon to the icon given in iconRes
resource id.
|
public android.view.SubMenu | setHeaderIcon(android.graphics.drawable.Drawable icon)Sets the submenu header's icon to the icon given in icon
{@link Drawable}.
|
public android.view.SubMenu | setHeaderTitle(int titleRes)Sets the submenu header's title to the title given in titleRes
resource identifier.
|
public android.view.SubMenu | setHeaderTitle(java.lang.CharSequence title)Sets the submenu header's title to the title given in title.
|
public android.view.SubMenu | setHeaderView(View view)Sets the header of the submenu to the {@link View} given in
view. This replaces the header title and icon (and those
replace this).
|
public android.view.SubMenu | setIcon(int iconRes)Change the icon associated with this submenu's item in its parent menu.
|
public android.view.SubMenu | setIcon(android.graphics.drawable.Drawable icon)Change the icon associated with this submenu's item in its parent menu.
|