public
interface
ViewManager
| android.view.ViewManager |
FrameLayout, RelativeLayout
or a custom layout instead.
Adapter.
AdapterView that will perform animations
when switching between its views.
ViewAnimator that will animate between two or more views
that have been added to it.
HorizontalScrollView and ViewPager
from the support library.
ViewSwitcher that switches between two ImageViews when a new
image is set on it.
A layout that arranges its children horizontally.
ViewSwitcher that contains
only children of type TextView.
RelativeLayout
or a LinearLayout.
FrameLayout container that will perform animations
when switching between its views.
ViewAnimator that will animate between two or more views
that have been added to it.
A ViewGroup is a special view that can contain other views
(called children.) The view group is the base class for layouts and views
containers.
ViewAnimator that switches between two views, and has a factory
from which these views are created.
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(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 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. |
public abstract void updateViewLayout (View view, ViewGroup.LayoutParams params)
| Parameters | |
|---|---|
view |
View |
params |
ViewGroup.LayoutParams |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-03-26 UTC.