added in version 22.1.0
belongs to Maven artifact com.android.support:support-v13:28.0.0-alpha1
Deprecated since version 27.1.0

FragmentTabHost

public class FragmentTabHost
extends TabHost implements TabHost.OnTabChangeListener

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.TabHost
           ↳ android.support.v13.app.FragmentTabHost


This class was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Version of FragmentTabHost that can be used with the platform Fragment APIs. You will not normally use this, instead using action bar tabs.

Summary

Inherited constants

From class android.view.ViewGroup
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

FragmentTabHost(Context context)

This constructor was deprecated in API level 27.1.0. Use FragmentTabHost instead.

FragmentTabHost(Context context, AttributeSet attrs)

This constructor was deprecated in API level 27.1.0. Use FragmentTabHost instead.

Public methods

void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void onTabChanged(String tabId)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void setOnTabChangedListener(TabHost.OnTabChangeListener l)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void setup()

This method was deprecated in API level 26.1.0. Use FragmentTabHost instead.

void setup(Context context, FragmentManager manager, int containerId)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void setup(Context context, FragmentManager manager)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

Protected methods

void onAttachedToWindow()

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void onDetachedFromWindow()

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

void onRestoreInstanceState(Parcelable state)

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

Parcelable onSaveInstanceState()

This method was deprecated in API level 27.1.0. Use FragmentTabHost instead.

Inherited methods

From class android.widget.TabHost
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewTreeObserver.OnTouchModeChangeListener
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.TabHost.OnTabChangeListener

Public constructors

FragmentTabHost

added in version 22.1.0
FragmentTabHost (Context context)

This constructor was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
context Context

FragmentTabHost

added in version 22.1.0
FragmentTabHost (Context context, 
                AttributeSet attrs)

This constructor was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
context Context

attrs AttributeSet

Public methods

addTab

added in version 22.1.0
void addTab (TabHost.TabSpec tabSpec, 
                Class<?> clss, 
                Bundle args)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
tabSpec TabHost.TabSpec

clss Class

args Bundle

onTabChanged

added in version 22.1.0
void onTabChanged (String tabId)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
tabId String

setOnTabChangedListener

added in version 27.1.0
void setOnTabChangedListener (TabHost.OnTabChangeListener l)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
l TabHost.OnTabChangeListener

setup

added in version 26.1.0
void setup ()

This method was deprecated in API level 26.1.0.
Use FragmentTabHost instead.

setup

added in version 22.1.0
void setup (Context context, 
                FragmentManager manager, 
                int containerId)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
context Context

manager FragmentManager

containerId int

setup

added in version 22.1.0
void setup (Context context, 
                FragmentManager manager)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
context Context

manager FragmentManager

Protected methods

onAttachedToWindow

added in version 27.1.0
void onAttachedToWindow ()

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

onDetachedFromWindow

added in version 27.1.0
void onDetachedFromWindow ()

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

onRestoreInstanceState

added in version 27.1.0
void onRestoreInstanceState (Parcelable state)

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Parameters
state Parcelable

onSaveInstanceState

added in version 27.1.0
Parcelable onSaveInstanceState ()

This method was deprecated in API level 27.1.0.
Use FragmentTabHost instead.

Returns
Parcelable