Android.Views.Window.SetGravity Method
Set the gravity of the window, as per the Gravity constants.

Syntax

[Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler")]
public virtual void SetGravity ([Android.Runtime.GeneratedEnum] GravityFlags gravity)

See Also

Gravity
Window.SetLayout(int, System.Int32)

Parameters

gravity
The desired gravity constant.

Remarks

Set the gravity of the window, as per the Gravity constants. This controls how the window manager is positioned in the overall window; it is only useful when using WRAP_CONTENT for the layout width or height.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1