ViewGroup.StartViewTransition(View) Method

Definition

This method tells the ViewGroup that the given View object, which should have this ViewGroup as its parent, should be kept around (re-displayed when the ViewGroup draws its children) even if it is removed from its parent.

[Android.Runtime.Register("startViewTransition", "(Landroid/view/View;)V", "GetStartViewTransition_Landroid_view_View_Handler")]
public virtual void StartViewTransition (Android.Views.View? view);
[<Android.Runtime.Register("startViewTransition", "(Landroid/view/View;)V", "GetStartViewTransition_Landroid_view_View_Handler")>]
abstract member StartViewTransition : Android.Views.View -> unit
override this.StartViewTransition : Android.Views.View -> unit

Parameters

view
View

The View object to be kept visible even if it gets removed from its parent.

Attributes

Remarks

This method tells the ViewGroup that the given View object, which should have this ViewGroup as its parent, should be kept around (re-displayed when the ViewGroup draws its children) even if it is removed from its parent. This allows animations, such as those used by android.app.Fragment and android.animation.LayoutTransition to animate the removal of views. A call to this method should always be accompanied by a later call to #endViewTransition(View), such as after an animation on the View has finished, so that the View finally gets removed.

Java documentation for android.view.ViewGroup.startViewTransition(android.view.View).

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