次の方法で共有


Activity.PostponeEnterTransition Method

Definition

Postpone the entering activity transition when Activity was started with android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[]).

[Android.Runtime.Register("postponeEnterTransition", "()V", "GetPostponeEnterTransitionHandler")]
public virtual void PostponeEnterTransition ();
[<Android.Runtime.Register("postponeEnterTransition", "()V", "GetPostponeEnterTransitionHandler")>]
abstract member PostponeEnterTransition : unit -> unit
override this.PostponeEnterTransition : unit -> unit
Attributes

Remarks

Postpone the entering activity transition when Activity was started with android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[]).

This method gives the Activity the ability to delay starting the entering and shared element transitions until all data is loaded. Until then, the Activity won't draw into its window, leaving the window transparent. This may also cause the returning animation to be delayed until data is ready. This method should be called in #onCreate(android.os.Bundle) or in #onActivityReenter(int, android.content.Intent). #startPostponedEnterTransition() must be called to allow the Activity to start the transitions. If the Activity did not use android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[]), then this method does nothing.

Java documentation for android.app.Activity.postponeEnterTransition().

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