TabHost

Class of android.widget · TabHost.java · Android's reference

public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchModeChangeListener

TabHost ← FrameLayout ← ViewGroup ← View

Tabs: a TabWidget of indicators, with the id android.R.id.tabs, and a FrameLayout of the content of each tab, with the id android.R.id.tabcontent. The content of the current tab shows; the others are gone.

Nested types

Constructors

public TabHost(Context context) source
public TabHost(Context context, AttributeSet attrs) source
public TabHost(Context context, AttributeSet attrs, int defStyleAttr) source
public TabHost(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public TabSpec newTabSpec(String tag) source
public void setup() source
public void addTab(TabSpec tabSpec) source
public void clearAllTabs() source
public TabWidget getTabWidget() source
public int getCurrentTab() source
public String getCurrentTabTag() source
public View getCurrentTabView() source
public View getCurrentView() source
public FrameLayout getTabContentView() source
public void setCurrentTabByTag(String tag) source
public void setCurrentTab(int index) source
public void setOnTabChangedListener(OnTabChangeListener l) source
protected void onAttachedToWindow() source
protected void onDetachedFromWindow() source
public void onTouchModeChanged(boolean isInTouchMode) empty body source
protected Parcelable onSaveInstanceState() source
protected void onRestoreInstanceState(Parcelable state) source
public CharSequence getAccessibilityClassName() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.