Taal

ImageView.ScaleType.CenterCrop Property

Definition

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). The image is then centered in the view.

[Android.Runtime.Register("CENTER_CROP")]
public static Android.Widget.ImageView.ScaleType CenterCrop { get; }
[<Android.Runtime.Register("CENTER_CROP")>]
static member CenterCrop : Android.Widget.ImageView.ScaleType

Property Value

The CENTER_CROP scale type.

Attributes

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