Partager via


LayoutTransition.AddChild(ViewGroup, View) Method

Definition

This method is called by ViewGroup when a child view is about to be added to the container.

[Android.Runtime.Register("addChild", "(Landroid/view/ViewGroup;Landroid/view/View;)V", "GetAddChild_Landroid_view_ViewGroup_Landroid_view_View_Handler")]
public virtual void AddChild (Android.Views.ViewGroup? parent, Android.Views.View? child);
[<Android.Runtime.Register("addChild", "(Landroid/view/ViewGroup;Landroid/view/View;)V", "GetAddChild_Landroid_view_ViewGroup_Landroid_view_View_Handler")>]
abstract member AddChild : Android.Views.ViewGroup * Android.Views.View -> unit
override this.AddChild : Android.Views.ViewGroup * Android.Views.View -> unit

Parameters

parent
ViewGroup

The ViewGroup to which the View is being added.

child
View

The View being added to the ViewGroup.

Attributes

Remarks

This method is called by ViewGroup when a child view is about to be added to the container. This callback starts the process of a transition; we grab the starting values, listen for changes to all of the children of the container, and start appropriate animations.

Java documentation for android.animation.LayoutTransition.addChild(android.view.ViewGroup, 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