次の方法で共有


Transition.GetTransitionProperties Method

Definition

Returns the set of property names used stored in the TransitionValues object passed into #captureStartValues(TransitionValues) that this transition cares about for the purposes of canceling overlapping animations.

[Android.Runtime.Register("getTransitionProperties", "()[Ljava/lang/String;", "GetGetTransitionPropertiesHandler")]
public virtual string[]? GetTransitionProperties ();
[<Android.Runtime.Register("getTransitionProperties", "()[Ljava/lang/String;", "GetGetTransitionPropertiesHandler")>]
abstract member GetTransitionProperties : unit -> string[]
override this.GetTransitionProperties : unit -> string[]

Returns

String[]

An array of property names as described in the class documentation for TransitionValues. The default implementation returns null.

Attributes

Remarks

Returns the set of property names used stored in the TransitionValues object passed into #captureStartValues(TransitionValues) that this transition cares about for the purposes of canceling overlapping animations. When any transition is started on a given scene root, all transitions currently running on that same scene root are checked to see whether the properties on which they based their animations agree with the end values of the same properties in the new transition. If the end values are not equal, then the old animation is canceled since the new transition will start a new animation to these new values. If the values are equal, the old animation is allowed to continue and no new animation is started for that transition.

A transition does not need to override this method. However, not doing so will mean that the cancellation logic outlined in the previous paragraph will be skipped for that transition, possibly leading to artifacts as old transitions and new transitions on the same targets run in parallel, animating views toward potentially different end values.

Java documentation for android.transition.Transition.getTransitionProperties().

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