Added in API level 1
Deprecated in API level 13

TabActivity


open class TabActivity : ActivityGroup
kotlin.Any
   ↳ android.content.Context
   ↳ android.content.ContextWrapper
   ↳ android.view.ContextThemeWrapper
   ↳ android.app.Activity
   ↳ android.app.ActivityGroup
   ↳ android.app.TabActivity

For apps developing against android.os.Build.VERSION_CODES#HONEYCOMB or later, tabs are typically presented in the UI using the new ActionBar.newTab() and related APIs for placing tabs within their action bar area.

Summary

Inherited constants
Public constructors

Public methods
open TabHost!

Returns the TabHost the activity is using to host its tabs.

open TabWidget!

Returns the TabWidget the activity is using to draw the actual tabs.

open Unit

Updates the screen state (current list and other views) when the content changes.

open Unit

Sets the default tab that is the first tab highlighted.

open Unit

Sets the default tab that is the first tab highlighted.

Protected methods
open Unit
onChildTitleChanged(childActivity: Activity!, title: CharSequence!)

open Unit
onPostCreate(icicle: Bundle?)

open Unit

open Unit

Inherited functions
Inherited properties

Public constructors

TabActivity

Added in API level 1
TabActivity()

Public methods

getTabHost

Added in API level 1
open fun getTabHost(): TabHost!

Deprecated: Deprecated in Java.

Returns the TabHost the activity is using to host its tabs.

Return
TabHost! the TabHost the activity is using to host its tabs.

getTabWidget

Added in API level 1
open fun getTabWidget(): TabWidget!

Deprecated: Deprecated in Java.

Returns the TabWidget the activity is using to draw the actual tabs.

Return
TabWidget! the TabWidget the activity is using to draw the actual tabs.

onContentChanged

Added in API level 1
open fun onContentChanged(): Unit

Deprecated: Deprecated in Java.

Updates the screen state (current list and other views) when the content changes.

setDefaultTab

Added in API level 1
open fun setDefaultTab(index: Int): Unit

Deprecated: Deprecated in Java.

Sets the default tab that is the first tab highlighted.

Parameters
index Int: the index of the default tab

setDefaultTab

Added in API level 1
open fun setDefaultTab(tag: String!): Unit

Deprecated: Deprecated in Java.

Sets the default tab that is the first tab highlighted.

Parameters
tag String!: the name of the default tab

Protected methods

onChildTitleChanged

Added in API level 1
protected open fun onChildTitleChanged(
    childActivity: Activity!,
    title: CharSequence!
): Unit

Deprecated: Deprecated in Java.

onPostCreate

Added in API level 1
protected open fun onPostCreate(icicle: Bundle?): Unit

Deprecated: Deprecated in Java.

Parameters
savedInstanceState If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in #onSaveInstanceState. Note: Otherwise it is null.

onRestoreInstanceState

Added in API level 1
protected open fun onRestoreInstanceState(state: Bundle): Unit

Deprecated: Deprecated in Java.

Parameters
savedInstanceState the data most recently supplied in #onSaveInstanceState. This value cannot be null.

onSaveInstanceState

Added in API level 1
protected open fun onSaveInstanceState(outState: Bundle): Unit

Deprecated: Deprecated in Java.

Parameters
outState Bundle: Bundle in which to place your saved state. This value cannot be null.