TabItem

public class TabItem
extends View

java.lang.Object
   ↳ View
     ↳ com.google.android.material.tabs.TabItem


TabItem is a special 'view' which allows you to declare tab items for a TabLayout within a layout. This view is not actually added to TabLayout, it is just a dummy which allows setting of a tab items's text, icon and custom layout. See TabLayout for more information on how to use it.

See also:

Summary

Fields

public final int customLayout

public final Drawable icon

public final CharSequence text

Public constructors

TabItem(Context context)
TabItem(Context context, AttributeSet attrs)

Inherited methods

From class java.lang.Object

Fields

customLayout

int customLayout

icon

Drawable icon

text

CharSequence text

Public constructors

TabItem

TabItem (Context context)

Parameters
context Context

TabItem

TabItem (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet