Scene.GetSceneForLayout(ViewGroup, Int32, Context) Method

Definition

Returns a Scene described by the resource file associated with the given layoutId parameter.

[Android.Runtime.Register("getSceneForLayout", "(Landroid/view/ViewGroup;ILandroid/content/Context;)Landroid/transition/Scene;", "")]
public static Android.Transitions.Scene? GetSceneForLayout (Android.Views.ViewGroup? sceneRoot, int layoutId, Android.Content.Context? context);
[<Android.Runtime.Register("getSceneForLayout", "(Landroid/view/ViewGroup;ILandroid/content/Context;)Landroid/transition/Scene;", "")>]
static member GetSceneForLayout : Android.Views.ViewGroup * int * Android.Content.Context -> Android.Transitions.Scene

Parameters

sceneRoot
ViewGroup

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

layoutId
Int32

The id of a standard layout resource file.

context
Context

The context used in the process of inflating the layout resource.

Returns

The scene for the given root and layout id

Attributes

Remarks

Returns a Scene described by the resource file associated with the given layoutId parameter. If such a Scene has already been created for the given sceneRoot, that same Scene will be returned. This caching of layoutId-based scenes enables sharing of common scenes between those created in code and those referenced by TransitionManager XML resource files.

Java documentation for android.transition.Scene.getSceneForLayout(android.view.ViewGroup, int, android.content.Context).

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