The Android Developer Challenge is back! Submit your idea before December 2.

TabLayout.TabView

public final class TabLayout.TabView
extends LinearLayout

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.google.android.material.tabs.TabLayout.TabView


A LinearLayout containing TabLayout.Tab instances for use with TabLayout.

Summary

Inherited constants

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

TabLayout.TabView(Context context)

Public methods

TabLayout.Tab getTab()
void onInitializeAccessibilityEvent(AccessibilityEvent event)
void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
void onMeasure(int origWidthMeasureSpec, int origHeightMeasureSpec)
boolean performClick()
void setSelected(boolean selected)

Protected methods

void drawableStateChanged()

Inherited methods

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public constructors

TabLayout.TabView

TabLayout.TabView (Context context)

Parameters
context Context

Public methods

getTab

TabLayout.Tab getTab ()

Returns
TabLayout.Tab

onInitializeAccessibilityEvent

void onInitializeAccessibilityEvent (AccessibilityEvent event)

Parameters
event AccessibilityEvent

onInitializeAccessibilityNodeInfo

void onInitializeAccessibilityNodeInfo (AccessibilityNodeInfo info)

Parameters
info AccessibilityNodeInfo

onMeasure

void onMeasure (int origWidthMeasureSpec, 
                int origHeightMeasureSpec)

Parameters
origWidthMeasureSpec int

origHeightMeasureSpec int

performClick

boolean performClick ()

Returns
boolean

setSelected

void setSelected (boolean selected)

Parameters
selected boolean

Protected methods

drawableStateChanged

void drawableStateChanged ()