ViewManager

public Interface

ViewManager

android.view.ViewManager

已知的间接子类AbsListView,AbsSpinner,AbsoluteLayout,AdapterView< T extends Adapter>,AdapterViewAnimator,AdapterViewFlipper,AppWidgetHostView,CalendarView,等其他35种。

Class Overview

Interface to let you add and remove child views to an Activity. To get an instance of this class, call Context.getSystemService()
Public Methods
(abstract void)[addView](http://www.android-doc.com/reference/android/view/ViewManager.html#addView(android.view.View, android.view.ViewGroup.LayoutParams))(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        The view to be added to this window.
params      The LayoutParams to assign to view.* ```
.

你可能感兴趣的:(ViewManager)