Added in API level 1

ViewManager


interface ViewManager

Interface to let you add and remove child views to an Activity. To get an instance of this class, call Context.getSystemService().

Summary

Public methods
abstract Unit
addView(view: View!, params: ViewGroup.LayoutParams!)

Assign the passed LayoutParams to the passed View and add the view to the window.

abstract Unit
removeView(view: View!)

abstract Unit

Public methods

addView

Added in API level 1
abstract fun addView(
 view: View!,
 params: ViewGroup.LayoutParams!
): Unit

Assign the passed LayoutParams to the passed View and add the view to the window.

Throws android.view.WindowManager.BadTokenException for certain programming errors, such as adding a second view to a window without removing the first view.

Throws android.view.WindowManager.InvalidDisplayException if the window is on a secondary Display and the specified display can't be found (see android.app.Presentation).

removeView

Added in API level 1
abstract fun removeView(view: View!): Unit

updateViewLayout

Added in API level 1
abstract fun updateViewLayout(
 view: View!,
 params: ViewGroup.LayoutParams!
): Unit