Share via


Scene Constructors

Definition

Overloads

Scene(ViewGroup)

Constructs a Scene with no information about how values will change when this scene is applied.

Scene(ViewGroup, View)

Constructs a Scene which, when entered, will remove any children from the sceneRoot container and add the layout object as a new child of that container.

Scene(ViewGroup, ViewGroup)
Obsolete.

This member is deprecated.

Scene(ViewGroup)

Constructs a Scene with no information about how values will change when this scene is applied.

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;)V", "")]
public Scene (Android.Views.ViewGroup? sceneRoot);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;)V", "")>]
new Android.Transitions.Scene : Android.Views.ViewGroup -> Android.Transitions.Scene

Parameters

sceneRoot
ViewGroup

The root of the hierarchy in which scene changes and transitions will take place.

Attributes

Remarks

Constructs a Scene with no information about how values will change when this scene is applied. This constructor might be used when a Scene is created with the intention of being dynamically configured, through setting #setEnterAction(Runnable) and possibly #setExitAction(Runnable).

Java documentation for android.transition.Scene.Scene(android.view.ViewGroup).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Scene(ViewGroup, View)

Constructs a Scene which, when entered, will remove any children from the sceneRoot container and add the layout object as a new child of that container.

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;Landroid/view/View;)V", "")]
public Scene (Android.Views.ViewGroup? sceneRoot, Android.Views.View? layout);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;Landroid/view/View;)V", "")>]
new Android.Transitions.Scene : Android.Views.ViewGroup * Android.Views.View -> Android.Transitions.Scene

Parameters

sceneRoot
ViewGroup

The root of the hierarchy in which scene changes and transitions will take place.

layout
View

The view hierarchy of this scene, added as a child of sceneRoot when this scene is entered.

Attributes

Remarks

Constructs a Scene which, when entered, will remove any children from the sceneRoot container and add the layout object as a new child of that container.

Java documentation for android.transition.Scene.Scene(android.view.ViewGroup, android.view.View).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Scene(ViewGroup, ViewGroup)

Caution

deprecated

This member is deprecated.

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;Landroid/view/ViewGroup;)V", "")]
[System.Obsolete("deprecated")]
public Scene (Android.Views.ViewGroup? sceneRoot, Android.Views.ViewGroup? layout);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup;Landroid/view/ViewGroup;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Transitions.Scene : Android.Views.ViewGroup * Android.Views.ViewGroup -> Android.Transitions.Scene

Parameters

sceneRoot
ViewGroup

The root of the hierarchy in which scene changes and transitions will take place.

layout
ViewGroup
Attributes

Remarks

This member is deprecated. use #Scene(ViewGroup, View).

Java documentation for android.transition.Scene.Scene(android.view.ViewGroup, android.view.ViewGroup).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to