Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

FragmentTabHost

open class FragmentTabHost : TabHost, OnTabChangeListener
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ android.widget.TabHost
   ↳ androidx.legacy.app.FragmentTabHost

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

Summary

Public constructors
<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

Public methods
open Unit
addTab(tabSpec: TabSpec!, clss: Class<*>!, args: Bundle!)

open Unit

open Unit

open Unit

open Unit
setup(context: Context!, manager: FragmentManager!)

open Unit
setup(context: Context!, manager: FragmentManager!, containerId: Int)

Protected methods
open Unit

open Unit

open Unit

open Parcelable!

Public constructors

<init>

FragmentTabHost(context: Context!)

Deprecated: Use androidx.fragment.app.FragmentTabHost instead.

<init>

FragmentTabHost(context: Context!, attrs: AttributeSet!)

Deprecated: Use androidx.fragment.app.FragmentTabHost instead.

Public methods

addTab

open fun addTab(tabSpec: TabSpec!, clss: Class<*>!, args: Bundle!): Unit

onTabChanged

open fun onTabChanged(tabId: String!): Unit

setOnTabChangedListener

open fun setOnTabChangedListener(l: OnTabChangeListener!): Unit

setup

open fun setup(): Unit

setup

open fun setup(context: Context!, manager: FragmentManager!): Unit

setup

open fun setup(context: Context!, manager: FragmentManager!, containerId: Int): Unit

Protected methods

onAttachedToWindow

protected open fun onAttachedToWindow(): Unit

onDetachedFromWindow

protected open fun onDetachedFromWindow(): Unit

onRestoreInstanceState

protected open fun onRestoreInstanceState(state: Parcelable!): Unit

onSaveInstanceState

protected open fun onSaveInstanceState(): Parcelable!