AlphaAnimation Constructors

Definition

Overloads

AlphaAnimation(Context, IAttributeSet)

Constructor used when an AlphaAnimation is loaded from a resource.

AlphaAnimation(IntPtr, JniHandleOwnership)

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

AlphaAnimation(Single, Single)

Constructor to use when building an AlphaAnimation from code

AlphaAnimation(Context, IAttributeSet)

Constructor used when an AlphaAnimation is loaded from a resource.

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

Parameters

context
Context

Application context to use

attrs
IAttributeSet

Attribute set from which to read values

Attributes

Remarks

Constructor used when an AlphaAnimation is loaded from a resource.

Java documentation for android.view.animation.AlphaAnimation.AlphaAnimation(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

AlphaAnimation(IntPtr, JniHandleOwnership)

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

protected AlphaAnimation (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.AlphaAnimation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.AlphaAnimation

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

AlphaAnimation(Single, Single)

Constructor to use when building an AlphaAnimation from code

[Android.Runtime.Register(".ctor", "(FF)V", "")]
public AlphaAnimation (float fromAlpha, float toAlpha);
[<Android.Runtime.Register(".ctor", "(FF)V", "")>]
new Android.Views.Animations.AlphaAnimation : single * single -> Android.Views.Animations.AlphaAnimation

Parameters

fromAlpha
Single

Starting alpha value for the animation, where 1.0 means fully opaque and 0.0 means fully transparent.

toAlpha
Single

Ending alpha value for the animation.

Attributes

Remarks

Constructor to use when building an AlphaAnimation from code

Java documentation for android.view.animation.AlphaAnimation.AlphaAnimation(float, float).

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