Android.Widget.PopupWindow.ShowAtLocation Method

Syntax

[Android.Runtime.Register("showAtLocation", "(Landroid/view/View;III)V", "GetShowAtLocation_Landroid_view_View_IIIHandler")]
public virtual void ShowAtLocation (Android.Views.View parent, [Android.Runtime.GeneratedEnum] Android.Views.GravityFlags gravity, int x, int y)

Parameters

parent
a parent view to get the Android.Views.View.WindowToken token from
gravity
the gravity which controls the placement of the popup window
x
the popup's x location offset
y
the popup's y location offset

Remarks

Display the content view in a popup window at the specified location. If the popup window cannot fit on screen, it will be clipped. See Android.Views.WindowManagerLayoutParams for more information on how gravity and the x and y parameters are related. Specifying a gravity of Android.Views.Gravity.NO_GRAVITY is similar to specifying Gravity.LEFT | Gravity.TOP.

[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