PopupWindow PopupWindow Class

Definition

[Android.Runtime.Register("android/widget/PopupWindow", ApiSince=1, DoNotGenerateAcw=true)]
public class PopupWindow : Java.Lang.Object
type PopupWindow = class
    inherit Object
Inheritance
PopupWindowPopupWindow
Attributes

Remarks

Android platform documentation

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.

Constructors

PopupWindow() PopupWindow()
PopupWindow(Context) PopupWindow(Context)
PopupWindow(Context, IAttributeSet) PopupWindow(Context, IAttributeSet)
PopupWindow(Context, IAttributeSet, Int32) PopupWindow(Context, IAttributeSet, Int32)
PopupWindow(Context, IAttributeSet, Int32, Int32) PopupWindow(Context, IAttributeSet, Int32, Int32)
PopupWindow(Int32, Int32) PopupWindow(Int32, Int32)
PopupWindow(IntPtr, JniHandleOwnership) PopupWindow(IntPtr, JniHandleOwnership)

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

PopupWindow(View) PopupWindow(View)
PopupWindow(View, Int32, Int32) PopupWindow(View, Int32, Int32)
PopupWindow(View, Int32, Int32, Boolean) PopupWindow(View, Int32, Int32, Boolean)

Properties

AnimationStyle AnimationStyle
AttachedInDecor AttachedInDecor
Background Background

Return the drawable used as the popup window's background.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
ClippingEnabled ClippingEnabled
ContentView ContentView
Elevation Elevation
EnterTransition EnterTransition
ExitTransition ExitTransition
Focusable Focusable
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Height Height

Returns the popup's height MeasureSpec.

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
InputMethodMode InputMethodMode

Return the current value in InputMethodMode.

IsAboveAnchor IsAboveAnchor
IsShowing IsShowing
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
OutsideTouchable OutsideTouchable
OverlapAnchor OverlapAnchor
PeerReference PeerReference Inherited from Object
SoftInputMode SoftInputMode

Returns the current value in SoftInputMode.

SplitTouchEnabled SplitTouchEnabled
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Touchable Touchable
Width Width

Returns the popup's width MeasureSpec.

WindowLayoutType WindowLayoutType

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Dismiss() Dismiss()

Disposes of the popup window.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetMaxAvailableHeight(View) GetMaxAvailableHeight(View)

Returns the maximum height that is available for the popup to be completely shown.

GetMaxAvailableHeight(View, Int32) GetMaxAvailableHeight(View, Int32)

Returns the maximum height that is available for the popup to be completely shown.

GetMaxAvailableHeight(View, Int32, Boolean) GetMaxAvailableHeight(View, Int32, Boolean)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetBackgroundDrawable(Drawable) SetBackgroundDrawable(Drawable)

Specifies the background drawable for this popup window.

SetEnterTransition(Transition) SetEnterTransition(Transition)
SetExitTransition(Transition) SetExitTransition(Transition)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetIgnoreCheekPress() 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) SetOnDismissListener(PopupWindow+IOnDismissListener)

Sets the listener to be called when the window is dismissed.

SetTouchInterceptor(View+IOnTouchListener) SetTouchInterceptor(View+IOnTouchListener)

Set a callback for all touch events being dispatched to the popup window.

SetWindowLayoutMode(Int32, Int32) SetWindowLayoutMode(Int32, Int32)
ShowAsDropDown(View) ShowAsDropDown(View)

Display the content view in a popup window anchored to the bottom-left corner of the anchor view.

ShowAsDropDown(View, Int32, Int32) 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) 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) ShowAtLocation(View, GravityFlags, Int32, Int32)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Update() Update()

Updates the state of the popup window, if it is currently being displayed, from the currently set state.

Update(Int32, Int32) Update(Int32, Int32)

Updates the dimension of the popup window.

Update(Int32, Int32, Int32, Int32) Update(Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

Update(Int32, Int32, Int32, Int32, Boolean) Update(Int32, Int32, Int32, Int32, Boolean)

Updates the position and the dimension of the popup window.

Update(View, Int32, Int32) Update(View, Int32, Int32)

Updates the position and the dimension of the popup window.

Update(View, Int32, Int32, Int32, Int32) Update(View, Int32, Int32, Int32, Int32)

Updates the position and the dimension of the popup window.

Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Events

DismissEvent DismissEvent
TouchIntercepted TouchIntercepted

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to