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.
public TabHost(Context context) sourcepublic TabHost(Context context, AttributeSet attrs) sourcepublic TabHost(Context context, AttributeSet attrs, int defStyleAttr) sourcepublic TabHost(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) sourcepublic TabSpec newTabSpec(String tag) sourcepublic void setup() sourcepublic void addTab(TabSpec tabSpec) sourcepublic void clearAllTabs() sourcepublic TabWidget getTabWidget() sourcepublic int getCurrentTab() sourcepublic String getCurrentTabTag() sourcepublic View getCurrentTabView() sourcepublic View getCurrentView() sourcepublic FrameLayout getTabContentView() sourcepublic void setCurrentTabByTag(String tag) sourcepublic void setCurrentTab(int index) sourcepublic void setOnTabChangedListener(OnTabChangeListener l) sourceprotected void onAttachedToWindow() sourceprotected void onDetachedFromWindow() sourcepublic void onTouchModeChanged(boolean isInTouchMode) empty body sourceprotected Parcelable onSaveInstanceState() sourceprotected void onRestoreInstanceState(Parcelable state) sourcepublic CharSequence getAccessibilityClassName() sourceMade 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.