ListPopupWindow 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ListPopupWindow(Context) |
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 |
| ListPopupWindow(Context, IAttributeSet) |
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 |
| ListPopupWindow(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| ListPopupWindow(Context, IAttributeSet, Int32) |
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 |
| ListPopupWindow(Context, IAttributeSet, Int32, Int32) |
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 |
ListPopupWindow(Context)
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public ListPopupWindow(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.ListPopupWindow : Android.Content.Context -> Android.Widget.ListPopupWindow
參數
- context
- Context
包含視角時使用上下文。
- 屬性
備註
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 背景應該用 #setBackgroundDrawable(Drawable)。
Java 文件 android.widget.ListPopupWindow.ListPopupWindow(android.content.Context)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
ListPopupWindow(Context, IAttributeSet)
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ListPopupWindow(Android.Content.Context context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.ListPopupWindow : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.ListPopupWindow
參數
- context
- Context
包含視角時使用上下文。
- attrs
- IAttributeSet
過去是用膨脹父視圖的屬性來做彈出視窗的樣式。
- 屬性
備註
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 背景應該用 #setBackgroundDrawable(Drawable)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
ListPopupWindow(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected ListPopupWindow(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.ListPopupWindow : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.ListPopupWindow
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
ListPopupWindow(Context, IAttributeSet, Int32)
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public ListPopupWindow(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.ListPopupWindow : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.ListPopupWindow
參數
- context
- Context
包含視角時使用上下文。
- attrs
- IAttributeSet
過去是用膨脹父視圖的屬性來做彈出視窗的樣式。
- defStyleAttr
- Int32
彈出式內容的預設風格屬性。
- 屬性
備註
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 背景應該用 #setBackgroundDrawable(Drawable)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
ListPopupWindow(Context, IAttributeSet, Int32, Int32)
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public ListPopupWindow(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.ListPopupWindow : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.ListPopupWindow
參數
- context
- Context
包含視角時使用上下文。
- attrs
- IAttributeSet
過去是用膨脹父視圖的屬性來做彈出視窗的樣式。
- defStyleAttr
- Int32
用 style 屬性讀取,預設跳出視窗內容的樣式。
- defStyleRes
- Int32
用來預設彈出內容樣式的樣式資源 ID。
- 屬性
備註
建立一個新的、空白的彈出視窗,能夠顯示 ListAdapter 中的項目。 背景應該用 #setBackgroundDrawable(Drawable)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。