Visibility.OnAppear Method

Definition

Overloads

OnAppear(ViewGroup, View, TransitionValues, TransitionValues)

The default implementation of this method returns a null Animator.

OnAppear(ViewGroup, TransitionValues, Int32, TransitionValues, Int32)

The default implementation of this method calls #onAppear(ViewGroup, View, TransitionValues, TransitionValues).

OnAppear(ViewGroup, View, TransitionValues, TransitionValues)

The default implementation of this method returns a null Animator.

[Android.Runtime.Register("onAppear", "(Landroid/view/ViewGroup;Landroid/view/View;Landroid/transition/TransitionValues;Landroid/transition/TransitionValues;)Landroid/animation/Animator;", "GetOnAppear_Landroid_view_ViewGroup_Landroid_view_View_Landroid_transition_TransitionValues_Landroid_transition_TransitionValues_Handler")]
public virtual Android.Animation.Animator? OnAppear (Android.Views.ViewGroup? sceneRoot, Android.Views.View? view, Android.Transitions.TransitionValues? startValues, Android.Transitions.TransitionValues? endValues);
[<Android.Runtime.Register("onAppear", "(Landroid/view/ViewGroup;Landroid/view/View;Landroid/transition/TransitionValues;Landroid/transition/TransitionValues;)Landroid/animation/Animator;", "GetOnAppear_Landroid_view_ViewGroup_Landroid_view_View_Landroid_transition_TransitionValues_Landroid_transition_TransitionValues_Handler")>]
abstract member OnAppear : Android.Views.ViewGroup * Android.Views.View * Android.Transitions.TransitionValues * Android.Transitions.TransitionValues -> Android.Animation.Animator
override this.OnAppear : Android.Views.ViewGroup * Android.Views.View * Android.Transitions.TransitionValues * Android.Transitions.TransitionValues -> Android.Animation.Animator

Parameters

sceneRoot
ViewGroup

The root of the transition hierarchy

view
View

The View to make appear. This will be in the target scene's View hierarchy and will be VISIBLE.

startValues
TransitionValues

The target values in the start scene

endValues
TransitionValues

The target values in the end scene

Returns

An Animator to be started at the appropriate time in the overall transition for this scene change. A null value means no animation should be run.

Attributes

Remarks

The default implementation of this method returns a null Animator. Subclasses should override this method to make targets appear with the desired transition. The method should only be called from #onAppear(ViewGroup, TransitionValues, int, TransitionValues, int).

Java documentation for android.transition.Visibility.onAppear(android.view.ViewGroup, android.view.View, android.transition.TransitionValues, android.transition.TransitionValues).

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

OnAppear(ViewGroup, TransitionValues, Int32, TransitionValues, Int32)

The default implementation of this method calls #onAppear(ViewGroup, View, TransitionValues, TransitionValues).

[Android.Runtime.Register("onAppear", "(Landroid/view/ViewGroup;Landroid/transition/TransitionValues;ILandroid/transition/TransitionValues;I)Landroid/animation/Animator;", "GetOnAppear_Landroid_view_ViewGroup_Landroid_transition_TransitionValues_ILandroid_transition_TransitionValues_IHandler")]
public virtual Android.Animation.Animator? OnAppear (Android.Views.ViewGroup? sceneRoot, Android.Transitions.TransitionValues? startValues, int startVisibility, Android.Transitions.TransitionValues? endValues, int endVisibility);
[<Android.Runtime.Register("onAppear", "(Landroid/view/ViewGroup;Landroid/transition/TransitionValues;ILandroid/transition/TransitionValues;I)Landroid/animation/Animator;", "GetOnAppear_Landroid_view_ViewGroup_Landroid_transition_TransitionValues_ILandroid_transition_TransitionValues_IHandler")>]
abstract member OnAppear : Android.Views.ViewGroup * Android.Transitions.TransitionValues * int * Android.Transitions.TransitionValues * int -> Android.Animation.Animator
override this.OnAppear : Android.Views.ViewGroup * Android.Transitions.TransitionValues * int * Android.Transitions.TransitionValues * int -> Android.Animation.Animator

Parameters

sceneRoot
ViewGroup

The root of the transition hierarchy

startValues
TransitionValues

The target values in the start scene

startVisibility
Int32

The target visibility in the start scene

endValues
TransitionValues

The target values in the end scene

endVisibility
Int32

The target visibility in the end scene

Returns

An Animator to be started at the appropriate time in the overall transition for this scene change. A null value means no animation should be run.

Attributes

Remarks

The default implementation of this method calls #onAppear(ViewGroup, View, TransitionValues, TransitionValues). Subclasses should override this method or #onAppear(ViewGroup, View, TransitionValues, TransitionValues). if they need to create an Animator when targets appear. The method should only be called by the Visibility class; it is not intended to be called from external classes.

Java documentation for android.transition.Visibility.onAppear(android.view.ViewGroup, android.transition.TransitionValues, int, android.transition.TransitionValues, int).

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