Android Guides | Samples

Android.Transitions.TransitionSet Class

A TransitionSet is a parent of child transitions (including other TransitionSets).

See Also: TransitionSet

Syntax

[Android.Runtime.Register("android/transition/TransitionSet", DoNotGenerateAcw=true)]
public class TransitionSet : Transition

Remarks

A TransitionSet is a parent of child transitions (including other TransitionSets). Using TransitionSets enables more complex choreography of transitions, where some sets play TransitionSet.OrderingTogether and others play TransitionSet.OrderingSequential. For example, AutoTransition uses a TransitionSet to sequentially play a Fade(Fade.OUT), followed by a ChangeBounds, followed by a Fade(Fade.OUT) transition.

xml Example

     <transitionSet xmlns:android="http://schemas.android.com/apk/res/android"
             android:ordering="sequential">
         <fade/>
         <changeBounds/>
     </transitionSet>

A TransitionSet can be described in a resource file by using the tag transitionSet, along with the standard attributes of NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#TransitionSet and NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#Transition. Child transitions of the TransitionSet object can be loaded by adding those child tags inside the enclosing transitionSet tag. For example, the following xml describes a TransitionSet that plays a Fade and then a ChangeBounds transition on the affected view targets:

[Android Documentation]

Requirements

Namespace: Android.Transitions
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Transitions.TransitionSet are listed below.

See Also: Transition

Public Constructors

Constructs an empty transition set.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
OrderingSequentialTransitionOrdering (1). A flag used to indicate that the child transitions of this set should play in sequence; when one child transition ends, the next child transition begins.
const
OrderingTogetherTransitionOrdering (0). A flag used to indicate that the child transitions of this set should all start at the same time.

Public Properties

[read-only]
OrderingTransitionOrdering. Returns the ordering of this TransitionSet.
[read-only]
TransitionCountInt32. Returns the number of child transitions in the TransitionSet.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddTransition(Transition) : TransitionSet
Adds child transition to this set.
override
CaptureEndValues(TransitionValues)
Captures the values in the end scene for the properties that this transition monitors.
override
CaptureStartValues(TransitionValues)
Captures the values in the start scene for the properties that this transition monitors.
GetTransitionAt(Int32) : Transition
Returns the child Transition at the specified position in the TransitionSet.
RemoveTransition(Transition) : TransitionSet
Removes the specified child transition from this set.
SetOrdering(TransitionOrdering) : TransitionSet
Sets the play order of this set's child transitions.