Android Guides | Samples

Android.App.Dialog Constructor

Creates a dialog window that uses a custom dialog style.

Syntax

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public Dialog (Context context, Int32 theme)

Parameters

context
theme

Remarks

Creates a dialog window that uses a custom dialog style.

The supplied context is used to obtain the window manager and base theme used to present the dialog.

The supplied theme is applied on top of the context's theme. See Style and Theme Resources for more information about defining and using styles.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1