Android.Transitions.TransitionManager Class
This class manages the set of transitions that fire when there is a change of Android.Transitions.Scene.

See Also: TransitionManager Members

Syntax

[Android.Runtime.Register("android/transition/TransitionManager", DoNotGenerateAcw=true)]
public class TransitionManager : Java.Lang.Object

Remarks

This class manages the set of transitions that fire when there is a change of Android.Transitions.Scene. To use the manager, add scenes along with transition objects with calls to TransitionManager.SetTransition(Scene, Android.Transitions.Transition) or TransitionManager.SetTransition(Scene, Android.Transitions.Scene, Android.Transitions.Scene). Setting specific transitions for scene changes is not required; by default, a Scene change will use Android.Transitions.AutoTransition to do something reasonable for most situations. Specifying other transitions for particular scene changes is only necessary if the application wants different transition behavior in these situations.

xml Example

<transitionManager xmlns:android="http://schemas.android.com/apk/res/android">
    <transition android:fromScene="@layout/transition_scene1"
                android:toScene="@layout/transition_scene2"
                android:transition="@transition/changebounds"/>
    <transition android:fromScene="@layout/transition_scene2"
                android:toScene="@layout/transition_scene1"
                android:transition="@transition/changebounds"/>
    <transition android:toScene="@layout/transition_scene3"
                android:transition="@transition/changebounds_fadein_together"/>
    <transition android:fromScene="@layout/transition_scene3"
                android:toScene="@layout/transition_scene1"
                android:transition="@transition/changebounds_fadeout_sequential"/>
    <transition android:fromScene="@layout/transition_scene3"
                android:toScene="@layout/transition_scene2"
                android:transition="@transition/changebounds_fadeout_sequential"/>
</transitionManager>
Information on XML resource descriptions for transitions can be found for NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#Transition, NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#TransitionSet, NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#TransitionTarget, NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#Fade, and NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#TransitionManager.

TransitionManagers can be declared in XML resource files inside the res/transition directory. TransitionManager resources consist of the transitionManagertag name, containing one or more transition tags, each of which describe the relationship of that transition to the from/to scene information in that tag. For example, here is a resource file that declares several scene transitions:

For each of the fromScene and toScene attributes, there is a reference to a standard XML layout file. This is equivalent to creating a scene from a layout in code by calling Scene.GetSceneForLayout(Android.Views.ViewGroup, System.Int32, System.Int32). For the transition attribute, there is a reference to a resource file in the res/transition directory which describes that transition.

[Android Documentation]

Requirements

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