# Print output for @column tags ?> ViewManager - Android SDK | Android Developers

Most visited


Recently visited


ViewManager

public interface ViewManager

android.view.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 void addView(View view, ViewGroup.LayoutParams params)

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

abstract void removeView(View view)
abstract void updateViewLayout(View view, ViewGroup.LayoutParams params)

Public methods


addView

public abstract void addView (View view, 
                ViewGroup.LayoutParams params)

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

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

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

Parameters
view View: The view to be added to this window.

params ViewGroup.LayoutParams: The LayoutParams to assign to view.

removeView

public abstract void removeView (View view)

Parameters
view View

updateViewLayout

public abstract void updateViewLayout (View view, 
                ViewGroup.LayoutParams params)

Parameters
view View

params ViewGroup.LayoutParams

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.