FragmentTabHost

public class FragmentTabHost


Special TabHost that allows the use of Fragment objects for its tab content. When placing this in a view hierarchy, after inflating the hierarchy you must call setup to complete the initialization of the tab host.

Summary

Public constructors

This method is deprecated.

Use TabLayout and ViewPager instead.

This method is deprecated.

Use TabLayout and ViewPager instead.

Public methods

void
addTab(
    @NonNull TabHost.TabSpec tabSpec,
    @NonNull Class<Object> clss,
    @Nullable Bundle args
)

This method is deprecated.

Use TabLayout and ViewPager instead.

@Override void

This method is deprecated.

Use TabLayout and ViewPager instead.

@Override void

This method is deprecated.

Use TabLayout and ViewPager instead.

@Override void

This method is deprecated.

Use TabLayout and ViewPager instead.

void

This method is deprecated.

Use TabLayout and ViewPager instead.

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

This method is deprecated.

Use TabLayout and ViewPager instead.

Inherited methods

From class FrameLayout
FrameLayout.LayoutParams
boolean

This method is deprecated.

boolean
void
setForegroundGravity(int foregroundGravity)
void
setMeasureAllChildren(boolean measureAll)
boolean
From class TabHost
void

This method is deprecated.

void

This method is deprecated.

boolean

This method is deprecated.

void
dispatchWindowFocusChanged(boolean hasFocus)

This method is deprecated.

CharSequence

This method is deprecated.

int

This method is deprecated.

String

This method is deprecated.

View

This method is deprecated.

View

This method is deprecated.

FrameLayout

This method is deprecated.

TabWidget

This method is deprecated.

TabHost.TabSpec

This method is deprecated.

void
onTouchModeChanged(boolean isInTouchMode)

This method is deprecated.

void
setCurrentTab(int index)

This method is deprecated.

void

This method is deprecated.

From class View
void