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

Inherited fields

Public constructors

TabView(Context context)

Public methods

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

Protected methods

void drawableStateChanged()

Inherited methods

Public constructors

TabView

public TabView (Context context)

Parameters
context Context

Public methods

getTab

public TabLayout.Tab getTab ()

Returns
TabLayout.Tab

onInitializeAccessibilityNodeInfo

public void onInitializeAccessibilityNodeInfo (AccessibilityNodeInfo info)

Parameters
info AccessibilityNodeInfo

onMeasure

public void onMeasure (int origWidthMeasureSpec, 
                int origHeightMeasureSpec)

Parameters
origWidthMeasureSpec int

origHeightMeasureSpec int

performClick

public boolean performClick ()

Returns
boolean

setSelected

public void setSelected (boolean selected)

Parameters
selected boolean

Protected methods

drawableStateChanged

protected void drawableStateChanged ()