public interface ViewManager
Context.getSystemService()
.Modifier and Type | Method and Description |
---|---|
void |
addView(View view,
ViewGroup.LayoutParams params)
Assign the passed LayoutParams to the passed View and add the view to the window.
|
void |
removeView(View view) |
void |
updateViewLayout(View view,
ViewGroup.LayoutParams params) |
void addView(View view, ViewGroup.LayoutParams params)
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
).
view
- The view to be added to this window.params
- The LayoutParams to assign to view.void updateViewLayout(View view, ViewGroup.LayoutParams params)
void removeView(View view)