PopupWindow.IsAboveAnchor Property

Definition

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).

public virtual bool IsAboveAnchor { [Android.Runtime.Register("isAboveAnchor", "()Z", "GetIsAboveAnchorHandler")] get; }
[<get: Android.Runtime.Register("isAboveAnchor", "()Z", "GetIsAboveAnchorHandler")>]
member this.IsAboveAnchor : bool

Property Value

True if this popup is showing above the anchor view, false otherwise.

Attributes

Remarks

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).

The value returned by this method is meaningful only after #showAsDropDown(android.view.View) or #showAsDropDown(android.view.View, int, int) was invoked.

Java documentation for android.widget.PopupWindow.isAboveAnchor().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to