Android Guides | Samples

Android.Widget.PopupWindow Class

See Also: PopupWindow

Syntax

[Android.Runtime.Register("android/widget/PopupWindow", DoNotGenerateAcw=true)]
public class PopupWindow : Object

Remarks

A popup window that can be used to display an arbitrary view. The popup window is a floating container that appears on top of the current activity.

See Also

[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

The members of Android.Widget.PopupWindow are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

AnimationStyleInt32.
[read-only]
BackgroundDrawable. Return the drawable used as the popup window's background.
ClippingEnabledBoolean.
ContentViewView.
ElevationSingle.
FocusableBoolean.
HeightInt32. Returns the popup's height MeasureSpec.
InputMethodModeInputMethod. Return the current value in PopupWindow.InputMethodMode.
[read-only]
IsAboveAnchorBoolean. Indicates whether the popup is showing above (the y coordinate of the popup's bottom is less than the y coordinate of the anchor) or below the anchor view (the y coordinate of the popup is greater than y coordinate of the anchor's bottom).
[read-only]
IsShowingBoolean.
OutsideTouchableBoolean.
SoftInputModeSoftInput. Returns the current value in PopupWindow.SoftInputMode.
SplitTouchEnabledBoolean.
TouchableBoolean.
WidthInt32. Returns the popup's width MeasureSpec.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Dismiss()
Disposes of the popup window.
GetMaxAvailableHeight(View) : Int32
Returns the maximum height that is available for the popup to be completely shown.
GetMaxAvailableHeight(View, Int32) : Int32
Returns the maximum height that is available for the popup to be completely shown.
SetBackgroundDrawable(Drawable)
Specifies the background drawable for this popup window.
SetIgnoreCheekPress()
Set the flag on popup to ignore cheek press events; by default this flag is set to false which means the popup will not ignore cheek press dispatch events.
SetOnDismissListener(PopupWindow+IOnDismissListener)
Sets the listener to be called when the window is dismissed.
SetTouchInterceptor(View+IOnTouchListener)
Set a callback for all touch events being dispatched to the popup window.
SetWindowLayoutMode(Int32, Int32)
ShowAsDropDown(View)
Display the content view in a popup window anchored to the bottom-left corner of the anchor view.
ShowAsDropDown(View, Int32, Int32)
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates.
ShowAsDropDown(View, Int32, Int32, GravityFlags)
Displays the content view in a popup window anchored to the corner of another view.
ShowAtLocation(View, GravityFlags, Int32, Int32)
Update()
Updates the state of the popup window, if it is currently being displayed, from the currently set state.
Update(Int32, Int32)
Updates the dimension of the popup window.
Update(View, Int32, Int32)
Updates the position and the dimension of the popup window.
Update(Int32, Int32, Int32, Int32)
Updates the position and the dimension of the popup window.
Update(View, Int32, Int32, Int32, Int32)
Updates the position and the dimension of the popup window.
Update(Int32, Int32, Int32, Int32, Boolean)
Updates the position and the dimension of the popup window.

Public Events