Compartir a través de


TransitionManager.SetTransition Method

Definition

Overloads

SetTransition(Scene, Transition)

Sets a specific transition to occur when the given scene is entered.

SetTransition(Scene, Scene, Transition)

Sets a specific transition to occur when the given pair of scenes is exited/entered.

SetTransition(Scene, Transition)

Sets a specific transition to occur when the given scene is entered.

[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene? scene, Android.Transitions.Transition? transition);
[<Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Transition_Handler")>]
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Transition -> unit

Parameters

scene
Scene

The scene which, when applied, will cause the given transition to run.

transition
Transition

The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.

Attributes

Remarks

Sets a specific transition to occur when the given scene is entered.

Java documentation for android.transition.TransitionManager.setTransition(android.transition.Scene, android.transition.Transition).

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

SetTransition(Scene, Scene, Transition)

Sets a specific transition to occur when the given pair of scenes is exited/entered.

[Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Scene_Landroid_transition_Transition_Handler")]
public virtual void SetTransition (Android.Transitions.Scene? fromScene, Android.Transitions.Scene? toScene, Android.Transitions.Transition? transition);
[<Android.Runtime.Register("setTransition", "(Landroid/transition/Scene;Landroid/transition/Scene;Landroid/transition/Transition;)V", "GetSetTransition_Landroid_transition_Scene_Landroid_transition_Scene_Landroid_transition_Transition_Handler")>]
abstract member SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit
override this.SetTransition : Android.Transitions.Scene * Android.Transitions.Scene * Android.Transitions.Transition -> unit

Parameters

fromScene
Scene

The scene being exited when the given transition will be run

toScene
Scene

The scene being entered when the given transition will be run

transition
Transition

The transition that will play when the given scene is entered. A value of null will result in the default behavior of using the default transition instead.

Attributes

Remarks

Sets a specific transition to occur when the given pair of scenes is exited/entered.

Java documentation for android.transition.TransitionManager.setTransition(android.transition.Scene, android.transition.Scene, android.transition.Transition).

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