다음을 통해 공유


ImageView.SetScaleType(ImageView+ScaleType) Method

Definition

Controls how the image should be resized or moved to match the size of this ImageView.

[Android.Runtime.Register("setScaleType", "(Landroid/widget/ImageView$ScaleType;)V", "GetSetScaleType_Landroid_widget_ImageView_ScaleType_Handler")]
public virtual void SetScaleType (Android.Widget.ImageView.ScaleType? scaleType);
[<Android.Runtime.Register("setScaleType", "(Landroid/widget/ImageView$ScaleType;)V", "GetSetScaleType_Landroid_widget_ImageView_ScaleType_Handler")>]
abstract member SetScaleType : Android.Widget.ImageView.ScaleType -> unit
override this.SetScaleType : Android.Widget.ImageView.ScaleType -> unit

Parameters

scaleType
ImageView.ScaleType

The desired scaling mode.

Attributes

Remarks

Java documentation for android.widget.ImageView.setScaleType(android.widget.ScaleType).

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