Android.Views.Gravity.ApplyDisplay Method
Apply additional gravity behavior based on the overall "display" that an object exists in.

Syntax

[Android.Runtime.Register("applyDisplay", "(ILandroid/graphics/Rect;Landroid/graphics/Rect;)V", "")]
public static void ApplyDisplay ([Android.Runtime.GeneratedEnum] GravityFlags gravity, Android.Graphics.Rect display, Android.Graphics.Rect inoutObj)

Parameters

gravity
Gravity constants to modify the placement within the display.
display
The rectangle of the display in which the object is being placed.
inoutObj
Supplies the current object position; returns with it modified if needed to fit in the display.

Remarks

Apply additional gravity behavior based on the overall "display" that an object exists in. This can be used after Gravity.Apply(GravityFlags, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32) to place the object within a visible display. By default this moves or clips the object to be visible in the display; the gravity flags Gravity.DISPLAY_CLIP_HORIZONTAL and Gravity.DISPLAY_CLIP_VERTICAL can be used to change this behavior.

[Android Documentation]

Requirements

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