Sdílet prostřednictvím


Transition.ExcludeTarget Method

Definition

Overloads

ExcludeTarget(View, Boolean)

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

ExcludeTarget(Class, Boolean)

Whether to add the given type to the list of types to exclude from this transition.

ExcludeTarget(Int32, Boolean)

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

ExcludeTarget(String, Boolean)

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

ExcludeTarget(View, Boolean)

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

[Android.Runtime.Register("excludeTarget", "(Landroid/view/View;Z)Landroid/transition/Transition;", "GetExcludeTarget_Landroid_view_View_ZHandler")]
public virtual Android.Transitions.Transition? ExcludeTarget (Android.Views.View? target, bool exclude);
[<Android.Runtime.Register("excludeTarget", "(Landroid/view/View;Z)Landroid/transition/Transition;", "GetExcludeTarget_Landroid_view_View_ZHandler")>]
abstract member ExcludeTarget : Android.Views.View * bool -> Android.Transitions.Transition
override this.ExcludeTarget : 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 given target to the list of targets 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.excludeTarget(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.ExcludeChildren(Android.Views.View%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(Java.Lang.Class%2c+System.Boolean)>

Applies to

ExcludeTarget(Class, Boolean)

Whether to add the given type to the list of types to exclude from this transition.

[Android.Runtime.Register("excludeTarget", "(Ljava/lang/Class;Z)Landroid/transition/Transition;", "GetExcludeTarget_Ljava_lang_Class_ZHandler")]
public virtual Android.Transitions.Transition? ExcludeTarget (Java.Lang.Class? type, bool exclude);
[<Android.Runtime.Register("excludeTarget", "(Ljava/lang/Class;Z)Landroid/transition/Transition;", "GetExcludeTarget_Ljava_lang_Class_ZHandler")>]
abstract member ExcludeTarget : Java.Lang.Class * bool -> Android.Transitions.Transition
override this.ExcludeTarget : 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 to exclude 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.excludeTarget(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.ExcludeChildren(Java.Lang.Class%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(Android.Views.View%2c+System.Boolean)>

Applies to

ExcludeTarget(Int32, Boolean)

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

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

Parameters

targetId
Int32

The id of a 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 given id to the list of target ids 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.excludeTarget(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.ExcludeChildren(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(Android.Views.View%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(Java.Lang.Class%2c+System.Boolean)>

Applies to

ExcludeTarget(String, Boolean)

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

[Android.Runtime.Register("excludeTarget", "(Ljava/lang/String;Z)Landroid/transition/Transition;", "GetExcludeTarget_Ljava_lang_String_ZHandler")]
public virtual Android.Transitions.Transition? ExcludeTarget (string? targetName, bool exclude);
[<Android.Runtime.Register("excludeTarget", "(Ljava/lang/String;Z)Landroid/transition/Transition;", "GetExcludeTarget_Ljava_lang_String_ZHandler")>]
abstract member ExcludeTarget : string * bool -> Android.Transitions.Transition
override this.ExcludeTarget : string * bool -> Android.Transitions.Transition

Parameters

targetName
String

The name of a 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 given transitionName to the list of target transitionNames 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 by their id, their instance reference, their transitionName, or by the Class of that view (eg, Spinner).

Java documentation for android.transition.Transition.excludeTarget(java.lang.String, 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.ExcludeTarget(System.Int32%2c+System.Boolean)>
  • <xref:Android.Transitions.Transition.ExcludeTarget(Java.Lang.Class%2c+System.Boolean)>

Applies to