IT. Expert System.

Android Reference

SubMenu


android.view

Interface SubMenu

  • All Superinterfaces:
    Menu


    public interface SubMenu
    extends Menu
    Subclass of Menu for sub menus.

    Sub menus do not support item icons, or nested sub menus.

    Developer Guides

    For information about creating menus, read the Menus developer guide.

    • Method Detail

      • setHeaderTitle

        SubMenu setHeaderTitle(int titleRes)
        Sets the submenu header's title to the title given in titleRes resource identifier.
        Parameters:
        titleRes - The string resource identifier used for the title.
        Returns:
        This SubMenu so additional setters can be called.
      • setHeaderTitle

        SubMenu setHeaderTitle(CharSequence title)
        Sets the submenu header's title to the title given in title.
        Parameters:
        title - The character sequence used for the title.
        Returns:
        This SubMenu so additional setters can be called.
      • setHeaderIcon

        SubMenu setHeaderIcon(int iconRes)
        Sets the submenu header's icon to the icon given in iconRes resource id.
        Parameters:
        iconRes - The resource identifier used for the icon.
        Returns:
        This SubMenu so additional setters can be called.
      • setHeaderIcon

        SubMenu setHeaderIcon(Drawable icon)
        Sets the submenu header's icon to the icon given in icon Drawable.
        Parameters:
        icon - The Drawable used for the icon.
        Returns:
        This SubMenu so additional setters can be called.
      • setHeaderView

        SubMenu setHeaderView(View view)
        Sets the header of the submenu to the View given in view. This replaces the header title and icon (and those replace this).
        Parameters:
        view - The View used for the header.
        Returns:
        This SubMenu so additional setters can be called.
      • clearHeader

        void clearHeader()
        Clears the header of the submenu.
      • setIcon

        SubMenu setIcon(int iconRes)
        Change the icon associated with this submenu's item in its parent menu.
        Parameters:
        iconRes - The new icon (as a resource ID) to be displayed.
        Returns:
        This SubMenu so additional setters can be called.
        See Also:
        MenuItem.setIcon(int)
      • setIcon

        SubMenu setIcon(Drawable icon)
        Change the icon associated with this submenu's item in its parent menu.
        Parameters:
        icon - The new icon (as a Drawable) to be displayed.
        Returns:
        This SubMenu so additional setters can be called.
        See Also:
        MenuItem.setIcon(Drawable)
      • getItem

        MenuItem getItem()
        Gets the MenuItem that represents this submenu in the parent menu. Use this for setting additional item attributes.
        Returns:
        The MenuItem that launches the submenu when invoked.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 691 / 158776994. Delta: 0.02852 с