belongs to Maven artifact androidx.legacy:legacy-support-v13:1.0.0-alpha1

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 is deprecated.
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 is deprecated. Use FragmentTabHost instead.

FragmentTabHost(Context context, AttributeSet attrs)

This constructor is deprecated. Use FragmentTabHost instead.

Public methods

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

This method is deprecated. Use FragmentTabHost instead.

void onTabChanged(String tabId)

This method is deprecated. Use FragmentTabHost instead.

void setOnTabChangedListener(TabHost.OnTabChangeListener l)

This method is deprecated. Use FragmentTabHost instead.

void setup()

This method is deprecated. Use FragmentTabHost instead.

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

This method is deprecated. Use FragmentTabHost instead.

void setup(Context context, FragmentManager manager)

This method is deprecated. Use FragmentTabHost instead.

Protected methods

void onAttachedToWindow()

This method is deprecated. Use FragmentTabHost instead.

void onDetachedFromWindow()

This method is deprecated. Use FragmentTabHost instead.

void onRestoreInstanceState(Parcelable state)

This method is deprecated. Use FragmentTabHost instead.

Parcelable onSaveInstanceState()

This method is deprecated. Use FragmentTabHost instead.

Inherited methods

Public constructors

FragmentTabHost

FragmentTabHost (Context context)

This constructor is deprecated.
Use FragmentTabHost instead.

Parameters
context Context

FragmentTabHost

FragmentTabHost (Context context, 
                AttributeSet attrs)

This constructor is deprecated.
Use FragmentTabHost instead.

Parameters
context Context

attrs AttributeSet

Public methods

addTab

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

This method is deprecated.
Use FragmentTabHost instead.

Parameters
tabSpec TabHost.TabSpec

clss Class

args Bundle

onTabChanged

void onTabChanged (String tabId)

This method is deprecated.
Use FragmentTabHost instead.

Parameters
tabId String

setOnTabChangedListener

void setOnTabChangedListener (TabHost.OnTabChangeListener l)

This method is deprecated.
Use FragmentTabHost instead.

Parameters
l TabHost.OnTabChangeListener

setup

void setup ()

This method is deprecated.
Use FragmentTabHost instead.

setup

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

This method is deprecated.
Use FragmentTabHost instead.

Parameters
context Context

manager FragmentManager

containerId int

setup

void setup (Context context, 
                FragmentManager manager)

This method is deprecated.
Use FragmentTabHost instead.

Parameters
context Context

manager FragmentManager

Protected methods

onAttachedToWindow

void onAttachedToWindow ()

This method is deprecated.
Use FragmentTabHost instead.

onDetachedFromWindow

void onDetachedFromWindow ()

This method is deprecated.
Use FragmentTabHost instead.

onRestoreInstanceState

void onRestoreInstanceState (Parcelable state)

This method is deprecated.
Use FragmentTabHost instead.

Parameters
state Parcelable

onSaveInstanceState

Parcelable onSaveInstanceState ()

This method is deprecated.
Use FragmentTabHost instead.

Returns
Parcelable