Dialog 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Dialog(Context) |
建立使用預設對話框主題的對話框視窗。 |
Dialog(Context, Int32) |
建立使用自定義對話框樣式的對話框視窗。 |
Dialog(IntPtr, JniHandleOwnership) |
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。 |
Dialog(Context, Boolean, IDialogInterfaceOnCancelListener) |
建立使用預設對話框主題的對話框視窗。 |
Dialog(Context, Boolean, EventHandler) |
Dialog(Context)
建立使用預設對話框主題的對話框視窗。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Dialog (Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.App.Dialog : Android.Content.Context -> Android.App.Dialog
參數
- context
- Context
對話應該在其中執行的內容
- 屬性
備註
建立使用預設對話框主題的對話框視窗。
提供的 context
是用來取得用來呈現對話框的視窗管理員和基底主題。
的 android.app.Dialog.Dialog(android.content.Context)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
Dialog(Context, Int32)
建立使用自定義對話框樣式的對話框視窗。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public Dialog (Android.Content.Context context, int themeResId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.App.Dialog : Android.Content.Context * int -> Android.App.Dialog
參數
- context
- Context
對話應該在其中執行的內容
- themeResId
- Int32
描述視窗使用之主題的樣式資源,或使用 0
預設對話框主題
- 屬性
備註
建立使用自定義對話框樣式的對話框視窗。
提供的 context
是用來取得用來呈現對話框的視窗管理員和基底主題。
提供的 theme
會套用在內容主題之上。 如需定義和使用樣式的詳細資訊,請參閱 樣式和主題資源 。
的 android.app.Dialog.Dialog(android.content.Context, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
Dialog(IntPtr, JniHandleOwnership)
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。
protected Dialog (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Dialog : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Dialog
參數
- transfer
- JniHandleOwnership
JniHandleOwnership,指出如何處理javaReference
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
Dialog(Context, Boolean, IDialogInterfaceOnCancelListener)
建立使用預設對話框主題的對話框視窗。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V", "")]
protected Dialog (Android.Content.Context context, bool cancelable, Android.Content.IDialogInterfaceOnCancelListener? cancelListener);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V", "")>]
new Android.App.Dialog : Android.Content.Context * bool * Android.Content.IDialogInterfaceOnCancelListener -> Android.App.Dialog
參數
- context
- Context
對話應該在其中執行的內容
- cancelable
- Boolean
- cancelListener
- IDialogInterfaceOnCancelListener
- 屬性
備註
的 android.app.Dialog.Dialog(android.content.Context)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
Dialog(Context, Boolean, EventHandler)
protected Dialog (Android.Content.Context context, bool cancelable, EventHandler cancelHandler);
new Android.App.Dialog : Android.Content.Context * bool * EventHandler -> Android.App.Dialog
參數
- context
- Context
- cancelable
- Boolean
- cancelHandler
- EventHandler
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。