ImageView.SetAdjustViewBounds(Boolean) ImageView.SetAdjustViewBounds(Boolean) Method

Definition

Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.

[Android.Runtime.Register("setAdjustViewBounds", "(Z)V", "GetSetAdjustViewBounds_ZHandler")]
public virtual void SetAdjustViewBounds (bool adjustViewBounds);
abstract member SetAdjustViewBounds : bool -> unit
override this.SetAdjustViewBounds : bool -> unit

Parameters

adjustViewBounds
Boolean Boolean

Whether to adjust the bounds of this view to preserve the original aspect ratio of the drawable.

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

See also