ScaleAnimation 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
ScaleAnimation(Context, IAttributeSet) |
Constructor used when a ScaleAnimation is loaded from a resource. |
ScaleAnimation(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ScaleAnimation(Single, Single, Single, Single) |
Constructor to use when building a ScaleAnimation from code |
ScaleAnimation(Single, Single, Single, Single, Single, Single) |
Constructor to use when building a ScaleAnimation from code |
ScaleAnimation(Single, Single, Single, Single, Dimension, Single, Dimension, Single) |
Constructor to use when building a ScaleAnimation from code |
ScaleAnimation(Context, IAttributeSet)
Constructor used when a ScaleAnimation is loaded from a resource.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ScaleAnimation (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.Animations.ScaleAnimation : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.Animations.ScaleAnimation
Parameters
- context
- Context
Application context to use
- attrs
- IAttributeSet
Attribute set from which to read values
- Attributes
Remarks
Constructor used when a ScaleAnimation is loaded from a resource.
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
ScaleAnimation(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ScaleAnimation (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.ScaleAnimation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.ScaleAnimation
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.
Applies to
ScaleAnimation(Single, Single, Single, Single)
Constructor to use when building a ScaleAnimation from code
[Android.Runtime.Register(".ctor", "(FFFF)V", "")]
public ScaleAnimation (float fromX, float toX, float fromY, float toY);
[<Android.Runtime.Register(".ctor", "(FFFF)V", "")>]
new Android.Views.Animations.ScaleAnimation : single * single * single * single -> Android.Views.Animations.ScaleAnimation
Parameters
- fromX
- Single
Horizontal scaling factor to apply at the start of the animation
- toX
- Single
Horizontal scaling factor to apply at the end of the animation
- fromY
- Single
Vertical scaling factor to apply at the start of the animation
- toY
- Single
Vertical scaling factor to apply at the end of the animation
- Attributes
Remarks
Constructor to use when building a ScaleAnimation from code
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
ScaleAnimation(Single, Single, Single, Single, Single, Single)
Constructor to use when building a ScaleAnimation from code
[Android.Runtime.Register(".ctor", "(FFFFFF)V", "")]
public ScaleAnimation (float fromX, float toX, float fromY, float toY, float pivotX, float pivotY);
[<Android.Runtime.Register(".ctor", "(FFFFFF)V", "")>]
new Android.Views.Animations.ScaleAnimation : single * single * single * single * single * single -> Android.Views.Animations.ScaleAnimation
Parameters
- fromX
- Single
Horizontal scaling factor to apply at the start of the animation
- toX
- Single
Horizontal scaling factor to apply at the end of the animation
- fromY
- Single
Vertical scaling factor to apply at the start of the animation
- toY
- Single
Vertical scaling factor to apply at the end of the animation
- pivotX
- Single
The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.)
- pivotY
- Single
The Y coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the top edge. (This point remains fixed while the object changes size.)
- Attributes
Remarks
Constructor to use when building a ScaleAnimation from code
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
ScaleAnimation(Single, Single, Single, Single, Dimension, Single, Dimension, Single)
Constructor to use when building a ScaleAnimation from code
[Android.Runtime.Register(".ctor", "(FFFFIFIF)V", "")]
public ScaleAnimation (float fromX, float toX, float fromY, float toY, Android.Views.Animations.Dimension pivotXType, float pivotXValue, Android.Views.Animations.Dimension pivotYType, float pivotYValue);
[<Android.Runtime.Register(".ctor", "(FFFFIFIF)V", "")>]
new Android.Views.Animations.ScaleAnimation : single * single * single * single * Android.Views.Animations.Dimension * single * Android.Views.Animations.Dimension * single -> Android.Views.Animations.ScaleAnimation
Parameters
- fromX
- Single
Horizontal scaling factor to apply at the start of the animation
- toX
- Single
Horizontal scaling factor to apply at the end of the animation
- fromY
- Single
Vertical scaling factor to apply at the start of the animation
- toY
- Single
Vertical scaling factor to apply at the end of the animation
- pivotXType
- Dimension
Specifies how pivotXValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
- pivotXValue
- Single
The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotXType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.
- pivotYType
- Dimension
Specifies how pivotYValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.
- pivotYValue
- Single
The Y coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the top edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotYType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.
- Attributes
Remarks
Constructor to use when building a ScaleAnimation from code
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.