Most visited

Recently visited

TabLayout.OnTabSelectedListener

public static interface TabLayout.OnTabSelectedListener

android.support.design.widget.TabLayout.OnTabSelectedListener
Known Indirect Subclasses


在选项卡的选择状态更改时调用回调接口。

Summary

Public methods

abstract void onTabReselected(TabLayout.Tab tab)

当用户再次选择了已经选择的标签时调用。

abstract void onTabSelected(TabLayout.Tab tab)

当选项卡进入选定状态时调用。

abstract void onTabUnselected(TabLayout.Tab tab)

当选项卡退出选定状态时调用。

Public methods

onTabReselected

void onTabReselected (TabLayout.Tab tab)

当用户再次选择了已经选择的标签时调用。 某些应用程序可能会使用此操作返回到类别的顶层。

Parameters
tab TabLayout.Tab: The tab that was reselected.

onTabSelected

void onTabSelected (TabLayout.Tab tab)

当选项卡进入选定状态时调用。

Parameters
tab TabLayout.Tab: The tab that was selected

onTabUnselected

void onTabUnselected (TabLayout.Tab tab)

当选项卡退出选定状态时调用。

Parameters
tab TabLayout.Tab: The tab that was unselected

Hooray!