Compartilhar via


Transition.SetMatchOrder(Int32[]) Method

Definition

Sets the order in which Transition matches View start and end values.

[Android.Runtime.Register("setMatchOrder", "([I)V", "GetSetMatchOrder_arrayIHandler")]
public virtual void SetMatchOrder (params int[]? matches);
[<Android.Runtime.Register("setMatchOrder", "([I)V", "GetSetMatchOrder_arrayIHandler")>]
abstract member SetMatchOrder : int[] -> unit
override this.SetMatchOrder : int[] -> unit

Parameters

matches
Int32[]

A list of zero or more of #MATCH_INSTANCE, #MATCH_NAME, #MATCH_ITEM_ID, and #MATCH_ID. If none are provided, then the default match order will be set.

Attributes

Remarks

Sets the order in which Transition matches View start and end values.

The default behavior is to match first by android.view.View#getTransitionName(), then by View instance, then by android.view.View#getId() and finally by its item ID if it is in a direct child of ListView. The caller can choose to have only some or all of the values of #MATCH_INSTANCE, #MATCH_NAME, #MATCH_ITEM_ID, and #MATCH_ID. Only the match algorithms supplied will be used to determine whether Views are the the same in both the start and end Scene. Views that do not match will be considered as entering or leaving the Scene.

Java documentation for android.transition.Transition.setMatchOrder(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