FileDocCategorySizeDatePackage
ViewManager.javaAPI DocAndroid 5.1 API1690Thu Mar 12 22:22:10 GMT 2015android.view

ViewManager

public interface ViewManager
Interface to let you add and remove child views to an Activity. To get an instance of this class, call {@link android.content.Context#getSystemService(java.lang.String) Context.getSystemService()}.

Fields Summary
Constructors Summary
Methods Summary
public voidaddView(View view, ViewGroup.LayoutParams params)
Assign the passed LayoutParams to the passed View and add the view to the window.

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

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

param
view The view to be added to this window.
param
params The LayoutParams to assign to view.

public voidremoveView(View view)

public voidupdateViewLayout(View view, ViewGroup.LayoutParams params)