Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.legacy:legacy-support-v13:1.0.0-rc01
Deprecated since version 1.0.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
           ↳ androidx.legacy.app.FragmentTabHost


This class was deprecated in API level 1.0.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

Inherited fields

Public constructors

FragmentTabHost(Context context)

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

FragmentTabHost(Context context, AttributeSet attrs)

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

Public methods

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

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

void onTabChanged(String tabId)

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

void setOnTabChangedListener(TabHost.OnTabChangeListener l)

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

void setup()

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

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

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

void setup(Context context, FragmentManager manager)

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

Protected methods

void onAttachedToWindow()

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

void onDetachedFromWindow()

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

void onRestoreInstanceState(Parcelable state)

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

Parcelable onSaveInstanceState()

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

Inherited methods

Public constructors

FragmentTabHost

added in version 1.0.0
public FragmentTabHost (Context context)

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

Parameters
context Context

FragmentTabHost

added in version 1.0.0
public FragmentTabHost (Context context, 
                AttributeSet attrs)

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

Parameters
context Context

attrs AttributeSet

Public methods

addTab

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

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

Parameters
tabSpec TabHost.TabSpec

clss Class

args Bundle

onTabChanged

added in version 1.0.0
public void onTabChanged (String tabId)

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

Parameters
tabId String

setOnTabChangedListener

added in version 1.0.0
public void setOnTabChangedListener (TabHost.OnTabChangeListener l)

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

Parameters
l TabHost.OnTabChangeListener

setup

added in version 1.0.0
public void setup ()

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

setup

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

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

Parameters
context Context

manager FragmentManager

containerId int

setup

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

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

Parameters
context Context

manager FragmentManager

Protected methods

onAttachedToWindow

added in version 1.0.0
protected void onAttachedToWindow ()

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

onDetachedFromWindow

added in version 1.0.0
protected void onDetachedFromWindow ()

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

onRestoreInstanceState

added in version 1.0.0
protected void onRestoreInstanceState (Parcelable state)

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

Parameters
state Parcelable

onSaveInstanceState

added in version 1.0.0
protected Parcelable onSaveInstanceState ()

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

Returns
Parcelable