PopupWindow Constructors

Definition

Overloads

PopupWindow()

Create a new empty, non focusable popup window of dimension (0,0).

PopupWindow(Context)

Create a new empty, non focusable popup window of dimension (0,0).

PopupWindow(View)

Create a new non focusable popup window which can display the contentView.

PopupWindow(Context, IAttributeSet)

Create a new empty, non focusable popup window of dimension (0,0).

PopupWindow(Int32, Int32)

Create a new empty, non focusable popup window.

PopupWindow(IntPtr, JniHandleOwnership)

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

PopupWindow(Context, IAttributeSet, Int32)

Create a new empty, non focusable popup window of dimension (0,0).

PopupWindow(View, Int32, Int32)

Create a new non focusable popup window which can display the contentView.

PopupWindow(Context, IAttributeSet, Int32, Int32)

Create a new, empty, non focusable popup window of dimension (0,0).

PopupWindow(View, Int32, Int32, Boolean)

Create a new popup window which can display the contentView.

PopupWindow()

Create a new empty, non focusable popup window of dimension (0,0).

[Android.Runtime.Register(".ctor", "()V", "")]
public PopupWindow ();
Attributes

Remarks

Create a new empty, non focusable popup window of dimension (0,0).

The popup does not provide any background. This should be handled by the content view.

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

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

PopupWindow(Context)

Create a new empty, non focusable popup window of dimension (0,0).

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public PopupWindow (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.PopupWindow : Android.Content.Context -> Android.Widget.PopupWindow

Parameters

context
Context
Attributes

Remarks

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

Java documentation for android.widget.PopupWindow.PopupWindow(android.content.Context).

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

PopupWindow(View)

Create a new non focusable popup window which can display the contentView.

[Android.Runtime.Register(".ctor", "(Landroid/view/View;)V", "")]
public PopupWindow (Android.Views.View? contentView);
[<Android.Runtime.Register(".ctor", "(Landroid/view/View;)V", "")>]
new Android.Widget.PopupWindow : Android.Views.View -> Android.Widget.PopupWindow

Parameters

contentView
View

the popup's content

Attributes

Remarks

Create a new non focusable popup window which can display the contentView. The dimension of the window are (0,0).

The popup does not provide any background. This should be handled by the content view.

Java documentation for android.widget.PopupWindow.PopupWindow(android.view.View).

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

PopupWindow(Context, IAttributeSet)

Create a new empty, non focusable popup window of dimension (0,0).

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public PopupWindow (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.PopupWindow : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.PopupWindow

Parameters

context
Context
Attributes

Remarks

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

Java documentation for android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet).

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

PopupWindow(Int32, Int32)

Create a new empty, non focusable popup window.

[Android.Runtime.Register(".ctor", "(II)V", "")]
public PopupWindow (int width, int height);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Widget.PopupWindow : int * int -> Android.Widget.PopupWindow

Parameters

width
Int32

the popup's width

height
Int32

the popup's height

Attributes

Remarks

Create a new empty, non focusable popup window. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Java documentation for android.widget.PopupWindow.PopupWindow(int, int).

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

PopupWindow(IntPtr, JniHandleOwnership)

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

protected PopupWindow (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.PopupWindow : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.PopupWindow

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

PopupWindow(Context, IAttributeSet, Int32)

Create a new empty, non focusable popup window of dimension (0,0).

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public PopupWindow (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Widget.PopupWindow : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.PopupWindow

Parameters

context
Context
defStyleAttr
Int32
Attributes

Remarks

Create a new empty, non focusable popup window of dimension (0,0).

The popup does provide a background.

Java documentation for android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet, int).

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

PopupWindow(View, Int32, Int32)

Create a new non focusable popup window which can display the contentView.

[Android.Runtime.Register(".ctor", "(Landroid/view/View;II)V", "")]
public PopupWindow (Android.Views.View? contentView, int width, int height);
[<Android.Runtime.Register(".ctor", "(Landroid/view/View;II)V", "")>]
new Android.Widget.PopupWindow : Android.Views.View * int * int -> Android.Widget.PopupWindow

Parameters

contentView
View

the popup's content

width
Int32

the popup's width

height
Int32

the popup's height

Attributes

Remarks

Create a new non focusable popup window which can display the contentView. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Java documentation for android.widget.PopupWindow.PopupWindow(android.view.View, int, int).

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

PopupWindow(Context, IAttributeSet, Int32, Int32)

Create a new, empty, non focusable popup window of dimension (0,0).

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public PopupWindow (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Widget.PopupWindow : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.PopupWindow

Parameters

context
Context
defStyleAttr
Int32
defStyleRes
Int32
Attributes

Remarks

Create a new, empty, non focusable popup window of dimension (0,0).

The popup does not provide a background.

Java documentation for android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet, int, int).

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

PopupWindow(View, Int32, Int32, Boolean)

Create a new popup window which can display the contentView.

[Android.Runtime.Register(".ctor", "(Landroid/view/View;IIZ)V", "")]
public PopupWindow (Android.Views.View? contentView, int width, int height, bool focusable);
[<Android.Runtime.Register(".ctor", "(Landroid/view/View;IIZ)V", "")>]
new Android.Widget.PopupWindow : Android.Views.View * int * int * bool -> Android.Widget.PopupWindow

Parameters

contentView
View

the popup's content

width
Int32

the popup's width

height
Int32

the popup's height

focusable
Boolean

true if the popup can be focused, false otherwise

Attributes

Remarks

Create a new popup window which can display the contentView. The dimension of the window must be passed to this constructor.

The popup does not provide any background. This should be handled by the content view.

Java documentation for android.widget.PopupWindow.PopupWindow(android.view.View, int, int, boolean).

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