共用方式為


Transition Constructors

Definition

Overloads

Transition()

Constructs a Transition object with no target objects.

Transition(Context, IAttributeSet)

Perform inflation from XML and apply a class-specific base style from a theme attribute or style resource.

Transition(IntPtr, JniHandleOwnership)

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

Transition()

Constructs a Transition object with no target objects.

[Android.Runtime.Register(".ctor", "()V", "")]
public Transition ();
Attributes

Remarks

Constructs a Transition object with no target objects. A transition with no targets defaults to running on all target objects in the scene hierarchy (if the transition is not contained in a TransitionSet), or all target objects passed down from its parent (if it is in a TransitionSet).

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

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

Transition(Context, IAttributeSet)

Perform inflation from XML and apply a class-specific base style from a theme attribute or style resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public Transition (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Transitions.Transition : Android.Content.Context * Android.Util.IAttributeSet -> Android.Transitions.Transition

Parameters

context
Context

The Context the transition is running in, through which it can access the current theme, resources, etc.

attrs
IAttributeSet

The attributes of the XML tag that is inflating the transition.

Attributes

Remarks

Perform inflation from XML and apply a class-specific base style from a theme attribute or style resource. This constructor of Transition allows subclasses to use their own base style when they are inflating.

Java documentation for android.transition.Transition.Transition(android.content.Context, android.util.AttributeSet).

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

Transition(IntPtr, JniHandleOwnership)

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

protected Transition (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Transitions.Transition : nativeint * Android.Runtime.JniHandleOwnership -> Android.Transitions.Transition

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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