TabImpl

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Gets a brief description of this tab's content for use in accessibility support.
Link copied to clipboard
open fun getCustomView(): View
Retrieve a previously set custom view for this tab.
Link copied to clipboard
open fun getIcon(): Drawable
Return the icon associated with this tab.
Link copied to clipboard
open fun getPosition(): Int
Return the current position of this tab in the action bar.
Link copied to clipboard
open fun getTag(): Any
Link copied to clipboard
open fun getText(): CharSequence
Return the text of this tab.
Link copied to clipboard
open fun select()
Select this tab.
Link copied to clipboard
Set a description of this tab's content for use in accessibility support.
Link copied to clipboard
open fun setCustomView(layoutResId: Int): ActionBar.Tab
Set a custom view to be used for this tab.
Link copied to clipboard
open fun setIcon(icon: Drawable): ActionBar.Tab
open fun setIcon(resId: Int): ActionBar.Tab
Set the icon displayed on this tab.
Link copied to clipboard
open fun setPosition(position: Int)
Link copied to clipboard
Set the TabListener that will handle switching to and from this tab.
Link copied to clipboard
open fun setTag(tag: Any): ActionBar.Tab
Give this Tab an arbitrary object to hold for later use.
Link copied to clipboard
open fun setText(resId: Int): ActionBar.Tab
Set the text displayed on this tab.