belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
Deprecated since version 24.1.0
ActionBar.Tab
public
static
abstract
class
ActionBar.Tab
extends Object
java.lang.Object | |
↳ | android.support.v7.app.ActionBar.Tab |
This class was deprecated
in API level 24.1.0.
Action bar navigation modes are deprecated and not supported by inline
toolbar action bars. Consider using other
common
navigation patterns instead.
A tab in the action bar.
Tabs manage the hiding and showing of Fragment
s.
Summary
Constants | |
---|---|
int |
INVALID_POSITION
An invalid position for a tab. |
Public constructors | |
---|---|
ActionBar.Tab()
|
Public methods | |
---|---|
abstract
CharSequence
|
getContentDescription()
Gets a brief description of this tab's content for use in accessibility support. |
abstract
View
|
getCustomView()
Retrieve a previously set custom view for this tab. |
abstract
Drawable
|
getIcon()
Return the icon associated with this tab. |
abstract
int
|
getPosition()
Return the current position of this tab in the action bar. |
abstract
Object
|
getTag()
|
abstract
CharSequence
|
getText()
Return the text of this tab. |
abstract
void
|
select()
Select this tab. |
abstract
ActionBar.Tab
|
setContentDescription(int resId)
Set a description of this tab's content for use in accessibility support. |
abstract
ActionBar.Tab
|
setContentDescription(CharSequence contentDesc)
Set a description of this tab's content for use in accessibility support. |
abstract
ActionBar.Tab
|
setCustomView(int layoutResId)
Set a custom view to be used for this tab. |
abstract
ActionBar.Tab
|
setCustomView(View view)
Set a custom view to be used for this tab. |
abstract
ActionBar.Tab
|
setIcon(Drawable icon)
Set the icon displayed on this tab. |
abstract
ActionBar.Tab
|
setIcon(int resId)
Set the icon displayed on this tab. |
abstract
ActionBar.Tab
|
setTabListener(ActionBar.TabListener listener)
Set the |
abstract
ActionBar.Tab
|
setTag(Object obj)
Give this Tab an arbitrary object to hold for later use. |
abstract
ActionBar.Tab
|
setText(int resId)
Set the text displayed on this tab. |