Android Guides | Samples

Android.Widget.ImageView.ScaleType Class

Options for scaling the bounds of an image to the bounds of this view.

See Also: ImageView+ScaleType

Syntax

[Android.Runtime.Register("android/widget/ImageView$ScaleType", DoNotGenerateAcw=true)]
public sealed class ImageView.ScaleType : Enum

Remarks

Options for scaling the bounds of an image to the bounds of this view.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.ImageView.ScaleType are listed below.

See Also: Enum

Public Properties

[read-only]
static
CenterImageView+ScaleType. Center the image in the view, but perform no scaling.
[read-only]
static
CenterCropImageView+ScaleType. Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
[read-only]
static
CenterInsideImageView+ScaleType. Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
[read-only]
static
FitCenterImageView+ScaleType. Scale the image using ScaleToFit.Center.
[read-only]
static
FitEndImageView+ScaleType. Scale the image using ScaleToFit.End.
[read-only]
static
FitStartImageView+ScaleType. Scale the image using ScaleToFit.Start.
[read-only]
static
FitXyImageView+ScaleType. Scale the image using ScaleToFit.Fill.
[read-only]
static
MatrixImageView+ScaleType. Scale using the image matrix when drawing.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods