Fragment.PostponeEnterTransition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Postpone the entering Fragment transition until #startPostponedEnterTransition()
or FragmentManager#executePendingTransactions() has been called.
[Android.Runtime.Register("postponeEnterTransition", "()V", "GetPostponeEnterTransitionHandler", ApiSince=26)]
public virtual void PostponeEnterTransition();
[<Android.Runtime.Register("postponeEnterTransition", "()V", "GetPostponeEnterTransitionHandler", ApiSince=26)>]
abstract member PostponeEnterTransition : unit -> unit
override this.PostponeEnterTransition : unit -> unit
- Attributes
Remarks
Postpones the entering fragment transition until StartPostponedEnterTransition() or ExecutePendingTransactions() is called. Until then, added, shown, and attached fragments are invisible, and views of removed, hidden, and detached fragments are not removed. The transaction runs when all postponed added fragments in it have called StartPostponedEnterTransition.
Call this method before adding the fragment to the transaction, or in OnAttach(Context), OnCreate(Bundle), or OnCreateView(LayoutInflater, ViewGroup, Bundle). A later transaction that affects the same containers can start the postponed transaction early, which can cause incorrect or missing animations. Transactions on independent containers do not interfere. A fragment with no view cannot postpone its transition. The transaction must also permit reordering; see SetReorderingAllowed(Boolean).
Android reference for android.app.Fragment.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.