Språk

ImageView.ScaleType.CenterInside 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 less than the corresponding dimension of the view (minus padding). The image is then centered in the view.

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

Property Value

The CENTER_INSIDE 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