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

Syntax

[Android.Runtime.Register("setAdjustViewBounds", "(Z)V", "GetSetAdjustViewBounds_ZHandler")]
public virtual void SetAdjustViewBounds (bool adjustViewBounds)

See Also

ImageView.AdjustViewBounds

Parameters

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

Remarks

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

Note: If the application targets API level 17 or lower, adjustViewBounds will allow the drawable to shrink the view bounds, but not grow to fill available measured space in all cases. This is for compatibility with legacy NoType:android/view/View$MeasureSpec;Href=../../../reference/android/view/View.MeasureSpec.html and Android.Widget.RelativeLayout behavior.

[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