Share via


Transition.ExcludeChildren Method

Definition

Overloads

ExcludeChildren(View, Boolean)

Whether to add the children of given target to the list of target children to exclude from this transition.

ExcludeChildren(Class, Boolean)

Whether to add the given type to the list of types whose children should be excluded from this transition.

ExcludeChildren(Int32, Boolean)

Whether to add the children of the given id to the list of targets to exclude from this transition.

ExcludeChildren(View, Boolean)

Whether to add the children of given target to the list of target children to exclude from this transition.

[Android.Runtime.Register("excludeChildren", "(Landroid/view/View;Z)Landroid/transition/Transition;", "GetExcludeChildren_Landroid_view_View_ZHandler")]
public virtual Android.Transitions.Transition? ExcludeChildren (Android.Views.View? target, bool exclude);
[<Android.Runtime.Register("excludeChildren", "(Landroid/view/View;Z)Landroid/transition/Transition;", "GetExcludeChildren_Landroid_view_View_ZHandler")>]
abstract member ExcludeChildren : Android.Views.View * bool -> Android.Transitions.Transition
override this.ExcludeChildren : Android.Views.View * bool -> Android.Transitions.Transition

Parameters

target
View

The target to ignore when running this transition.

exclude
Boolean

Whether to add the target to or remove the target from the current list of excluded targets.

Returns

This transition object.

Attributes

Remarks

Whether to add the children of given target to the list of target children to exclude from this transition. The exclude parameter specifies whether the target should be added to or removed from the excluded list.

Excluding targets is a general mechanism for allowing transitions to run on a view hierarchy while skipping target views that should not be part of the transition. For example, you may want to avoid animating children of a specific ListView or Spinner. Views can be excluded either by their id, or by their instance reference, or by the Class of that view (eg, Spinner).

Java documentation for android.transition.Transition.excludeChildren(android.view.View, boolean).

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.

See also

  • <xref:Android.Transitions.Transition.ExcludeTarget(Android.Views.View%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(Java.Lang.Class%2c+System.Boolean)>

Applies to

ExcludeChildren(Class, Boolean)

Whether to add the given type to the list of types whose children should be excluded from this transition.

[Android.Runtime.Register("excludeChildren", "(Ljava/lang/Class;Z)Landroid/transition/Transition;", "GetExcludeChildren_Ljava_lang_Class_ZHandler")]
public virtual Android.Transitions.Transition? ExcludeChildren (Java.Lang.Class? type, bool exclude);
[<Android.Runtime.Register("excludeChildren", "(Ljava/lang/Class;Z)Landroid/transition/Transition;", "GetExcludeChildren_Ljava_lang_Class_ZHandler")>]
abstract member ExcludeChildren : Java.Lang.Class * bool -> Android.Transitions.Transition
override this.ExcludeChildren : Java.Lang.Class * bool -> Android.Transitions.Transition

Parameters

type
Class

The type to ignore when running this transition.

exclude
Boolean

Whether to add the target type to or remove it from the current list of excluded target types.

Returns

This transition object.

Attributes

Remarks

Whether to add the given type to the list of types whose children should be excluded from this transition. The exclude parameter specifies whether the target type should be added to or removed from the excluded list.

Excluding targets is a general mechanism for allowing transitions to run on a view hierarchy while skipping target views that should not be part of the transition. For example, you may want to avoid animating children of a specific ListView or Spinner. Views can be excluded either by their id, or by their instance reference, or by the Class of that view (eg, Spinner).

Java documentation for android.transition.Transition.excludeChildren(java.lang.Class, boolean).

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.

See also

  • <xref:Android.Transitions.Transition.ExcludeTarget(Java.Lang.Class%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(Android.Views.View%2c+System.Boolean)>

Applies to

ExcludeChildren(Int32, Boolean)

Whether to add the children of the given id to the list of targets to exclude from this transition.

[Android.Runtime.Register("excludeChildren", "(IZ)Landroid/transition/Transition;", "GetExcludeChildren_IZHandler")]
public virtual Android.Transitions.Transition? ExcludeChildren (int targetId, bool exclude);
[<Android.Runtime.Register("excludeChildren", "(IZ)Landroid/transition/Transition;", "GetExcludeChildren_IZHandler")>]
abstract member ExcludeChildren : int * bool -> Android.Transitions.Transition
override this.ExcludeChildren : int * bool -> Android.Transitions.Transition

Parameters

targetId
Int32

The id of a target whose children should be ignored when running this transition.

exclude
Boolean

Whether to add the target to or remove the target from the current list of excluded-child targets.

Returns

This transition object.

Attributes

Remarks

Whether to add the children of the given id to the list of targets to exclude from this transition. The exclude parameter specifies whether the children of the target should be added to or removed from the excluded list. Excluding children in this way provides a simple mechanism for excluding all children of specific targets, rather than individually excluding each child individually.

Excluding targets is a general mechanism for allowing transitions to run on a view hierarchy while skipping target views that should not be part of the transition. For example, you may want to avoid animating children of a specific ListView or Spinner. Views can be excluded either by their id, or by their instance reference, or by the Class of that view (eg, Spinner).

Java documentation for android.transition.Transition.excludeChildren(int, boolean).

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.

See also

  • <xref:Android.Transitions.Transition.ExcludeTarget(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(Android.Views.View%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeChildren(Java.Lang.Class%2c+System.Boolean)>

Applies to