Animation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Animation() |
Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false |
Animation(Context, IAttributeSet) |
Creates a new animation whose parameters come from the specified context and attributes set. |
Animation(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Animation()
Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false
[Android.Runtime.Register(".ctor", "()V", "")]
public Animation ();
- Attributes
Remarks
Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false
Java documentation for android.view.animation.Animation.Animation()
.
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
Animation(Context, IAttributeSet)
Creates a new animation whose parameters come from the specified context and attributes set.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public Animation (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.Animations.Animation : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.Animations.Animation
Parameters
- context
- Context
the application environment
- attrs
- IAttributeSet
the set of attributes holding the animation parameters
- Attributes
Remarks
Creates a new animation whose parameters come from the specified context and attributes set.
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
Animation(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Animation (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.Animation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.Animation
Parameters
- 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.