IT. Expert System.

Android Reference

ActionBar.Tab


android.app

Class ActionBar.Tab

  • Enclosing class:
    ActionBar


    public abstract static class ActionBar.Tab
    extends Object
    A tab in the action bar.

    Tabs manage the hiding and showing of Fragments.

    • Constructor Detail

      • ActionBar.Tab

        public ActionBar.Tab()
    • Method Detail

      • getPosition

        public abstract int getPosition()
        Return the current position of this tab in the action bar.
        Returns:
        Current position, or INVALID_POSITION if this tab is not currently in the action bar.
      • getIcon

        public abstract Drawable getIcon()
        Return the icon associated with this tab.
        Returns:
        The tab's icon
      • getText

        public abstract CharSequence getText()
        Return the text of this tab.
        Returns:
        The tab's text
      • setIcon

        public abstract ActionBar.Tab setIcon(Drawable icon)
        Set the icon displayed on this tab.
        Parameters:
        icon - The drawable to use as an icon
        Returns:
        The current instance for call chaining
      • setIcon

        public abstract ActionBar.Tab setIcon(int resId)
        Set the icon displayed on this tab.
        Parameters:
        resId - Resource ID referring to the drawable to use as an icon
        Returns:
        The current instance for call chaining
      • setText

        public abstract ActionBar.Tab setText(CharSequence text)
        Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.
        Parameters:
        text - The text to display
        Returns:
        The current instance for call chaining
      • setText

        public abstract ActionBar.Tab setText(int resId)
        Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.
        Parameters:
        resId - A resource ID referring to the text that should be displayed
        Returns:
        The current instance for call chaining
      • setCustomView

        public abstract ActionBar.Tab setCustomView(View view)
        Set a custom view to be used for this tab. This overrides values set by setText(CharSequence) and setIcon(Drawable).
        Parameters:
        view - Custom view to be used as a tab.
        Returns:
        The current instance for call chaining
      • setCustomView

        public abstract ActionBar.Tab setCustomView(int layoutResId)
        Set a custom view to be used for this tab. This overrides values set by setText(CharSequence) and setIcon(Drawable).
        Parameters:
        layoutResId - A layout resource to inflate and use as a custom tab view
        Returns:
        The current instance for call chaining
      • getCustomView

        public abstract View getCustomView()
        Retrieve a previously set custom view for this tab.
        Returns:
        The custom view set by setCustomView(View).
      • setTag

        public abstract ActionBar.Tab setTag(Object obj)
        Give this Tab an arbitrary object to hold for later use.
        Parameters:
        obj - Object to store
        Returns:
        The current instance for call chaining
      • getTag

        public abstract Object getTag()
        Returns:
        This Tab's tag object.
      • setTabListener

        public abstract ActionBar.Tab setTabListener(ActionBar.TabListener listener)
        Set the ActionBar.TabListener that will handle switching to and from this tab. All tabs must have a TabListener set before being added to the ActionBar.
        Parameters:
        listener - Listener to handle tab selection events
        Returns:
        The current instance for call chaining
      • select

        public abstract void select()
        Select this tab. Only valid if the tab has been added to the action bar.
      • setContentDescription

        public abstract ActionBar.Tab setContentDescription(int resId)
        Set a description of this tab's content for use in accessibility support. If no content description is provided the title will be used.
        Parameters:
        resId - A resource ID referring to the description text
        Returns:
        The current instance for call chaining
        See Also:
        setContentDescription(CharSequence), getContentDescription()
      • setContentDescription

        public abstract ActionBar.Tab setContentDescription(CharSequence contentDesc)
        Set a description of this tab's content for use in accessibility support. If no content description is provided the title will be used.
        Parameters:
        contentDesc - Description of this tab's content
        Returns:
        The current instance for call chaining
        See Also:
        setContentDescription(int), getContentDescription()


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: 1732 / 96490231. Delta: 0.02650 с