com.google.android.material.tabs


Kotlin |Java

Interfaces

TabLayout.BaseOnTabSelectedListener

This interface is deprecated.

Use OnTabSelectedListener instead.

TabLayout.OnTabSelectedListener

Callback interface invoked when a tab's selection state changes.

TabLayoutMediator.TabConfigurationStrategy

A callback interface that must be implemented to set the text and styling of newly created tabs.

Classes

TabItem

TabItem is a special 'view' which allows you to declare tab items for a TabLayout within a layout.

TabLayout

TabLayout provides a horizontal layout to display tabs.

TabLayout.Tab

A tab in this layout.

TabLayout.TabLayoutOnPageChangeListener

A ViewPager.OnPageChangeListener class which contains the necessary calls back to the provided TabLayout so that the tab position is kept in sync.

TabLayout.TabView

A LinearLayout containing Tab instances for use with TabLayout .

TabLayout.ViewPagerOnTabSelectedListener

A TabLayout.OnTabSelectedListener class which contains the necessary calls back to the provided ViewPager so that the tab position is kept in sync.

TabLayoutMediator

A mediator to link a TabLayout with a ViewPager2.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.