added in version 23.4.0
belongs to Maven artifact com.android.support:design:27.1.0

TabItem

public final class TabItem
extends View

java.lang.Object
   ↳ android.view.View
     ↳ android.support.design.widget.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

XML attributes

TabItem_android_icon  
TabItem_android_layout  
TabItem_android_text  

Inherited constants

From class android.view.View

Inherited fields

From class android.view.View

Public constructors

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

Inherited methods

From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

XML attributes

TabItem_android_icon

TabItem_android_layout

TabItem_android_text

Public constructors

TabItem

added in version 23.4.0
TabItem (Context context)

Parameters
context Context

TabItem

added in version 23.4.0
TabItem (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet