共用方式為


PopupWindow 建構函式

定義

多載

PopupWindow()

建立維度的新空白、不可焦點彈出視窗 (0,0)。

PopupWindow(Context)

建立維度的新空白、不可焦點彈出視窗 (0,0)。

PopupWindow(View)

建立新的不可焦點彈出視窗,以顯示 contentView

PopupWindow(Context, IAttributeSet)

建立維度的新空白、不可焦點彈出視窗 (0,0)。

PopupWindow(Int32, Int32)

建立新的空白、不可設定焦點的彈出視窗。

PopupWindow(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

PopupWindow(Context, IAttributeSet, Int32)

建立維度的新空白、不可焦點彈出視窗 (0,0)。

PopupWindow(View, Int32, Int32)

建立新的不可焦點彈出視窗,以顯示 contentView

PopupWindow(Context, IAttributeSet, Int32, Int32)

建立維度的新空白、不可焦點彈出視窗 (0,0)。

PopupWindow(View, Int32, Int32, Boolean)

建立新的彈出視窗,以顯示 contentView

PopupWindow()

建立維度的新空白、不可焦點彈出視窗 (0,0)。

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

備註

建立維度的新空白、不可焦點彈出視窗 (0,0)。

快顯不提供任何背景。 這應該由內容檢視處理。

android.widget.PopupWindow.PopupWindow()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(Context)

建立維度的新空白、不可焦點彈出視窗 (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

參數

context
Context
屬性

備註

建立維度的新空白、不可焦點彈出視窗 (0,0)。

彈出視窗提供背景。

android.widget.PopupWindow.PopupWindow(android.content.Context)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(View)

建立新的不可焦點彈出視窗,以顯示 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

參數

contentView
View

快顯的內容

屬性

備註

建立新的不可焦點彈出視窗,以顯示 contentView。 窗口的維度為 (0,0)。

快顯不提供任何背景。 這應該由內容檢視處理。

android.widget.PopupWindow.PopupWindow(android.view.View)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(Context, IAttributeSet)

建立維度的新空白、不可焦點彈出視窗 (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

參數

context
Context
屬性

備註

建立維度的新空白、不可焦點彈出視窗 (0,0)。

彈出視窗提供背景。

android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(Int32, Int32)

建立新的空白、不可設定焦點的彈出視窗。

[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

參數

width
Int32

快顯的寬度

height
Int32

彈出視窗的高度

屬性

備註

建立新的空白、不可設定焦點的彈出視窗。 窗口的維度必須傳遞至這個建構函式。

快顯不提供任何背景。 這應該由內容檢視處理。

android.widget.PopupWindow.PopupWindow(int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(Context, IAttributeSet, Int32)

建立維度的新空白、不可焦點彈出視窗 (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

參數

context
Context
defStyleAttr
Int32
屬性

備註

建立維度的新空白、不可焦點彈出視窗 (0,0)。

彈出視窗提供背景。

android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(View, Int32, Int32)

建立新的不可焦點彈出視窗,以顯示 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

參數

contentView
View

快顯的內容

width
Int32

快顯的寬度

height
Int32

彈出視窗的高度

屬性

備註

建立新的不可焦點彈出視窗,以顯示 contentView。 窗口的維度必須傳遞至這個建構函式。

快顯不提供任何背景。 這應該由內容檢視處理。

android.widget.PopupWindow.PopupWindow(android.view.View, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(Context, IAttributeSet, Int32, Int32)

建立維度的新空白、不可焦點彈出視窗 (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

參數

context
Context
defStyleAttr
Int32
defStyleRes
Int32
屬性

備註

建立維度的新空白、不可焦點彈出視窗 (0,0)。

彈出視窗不提供背景。

android.widget.PopupWindow.PopupWindow(android.content.Context, android.util.AttributeSet, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PopupWindow(View, Int32, Int32, Boolean)

建立新的彈出視窗,以顯示 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

參數

contentView
View

快顯的內容

width
Int32

快顯的寬度

height
Int32

彈出視窗的高度

focusable
Boolean

如果彈出視窗可以焦點,則為 true,否則為 false

屬性

備註

建立新的彈出視窗,以顯示 contentView。 窗口的維度必須傳遞至這個建構函式。

快顯不提供任何背景。 這應該由內容檢視處理。

android.widget.PopupWindow.PopupWindow(android.view.View, int, int, boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於