Share via


AlertDialog 생성자

정의

오버로드

AlertDialog(Context)

기본 경고 대화 상자 테마를 사용하는 경고 대화 상자를 만듭니다.

AlertDialog(Context, Int32)

명시적 테마 리소스를 사용하는 경고 대화 상자를 만듭니다.

AlertDialog(IntPtr, JniHandleOwnership)

JNI 개체의 관리형 표현을 만들 때 사용되는 생성자입니다. 런타임에서 호출합니다.

AlertDialog(Context, Boolean, IDialogInterfaceOnCancelListener)

기본 경고 대화 상자 테마를 사용하는 경고 대화 상자를 만듭니다.

AlertDialog(Context, Boolean, EventHandler)

AlertDialog(Context)

기본 경고 대화 상자 테마를 사용하는 경고 대화 상자를 만듭니다.

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

매개 변수

context
Context

부모 컨텍스트

특성

설명

기본 경고 대화 상자 테마를 사용하는 경고 대화 상자를 만듭니다.

기본 경고 대화 상자 테마는 부모의 context테마 내에서 정의 android.R.attr#alertDialogTheme 됩니다.

에 대한 Java 설명서입니다 android.app.AlertDialog.AlertDialog(android.content.Context).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상

AlertDialog(Context, Int32)

명시적 테마 리소스를 사용하는 경고 대화 상자를 만듭니다.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
protected AlertDialog (Android.Content.Context? context, int themeResId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.App.AlertDialog : Android.Content.Context * int -> Android.App.AlertDialog

매개 변수

context
Context

부모 컨텍스트

themeResId
Int32

이 대화 상자를 확장하거나 0 부모의 context기본 경고 대화 상자 테마를 사용할 테마의 리소스 ID입니다.

특성

설명

명시적 테마 리소스를 사용하는 경고 대화 상자를 만듭니다.

지정된 테마 리소스(themeResId)가 부모 context테마 위에 적용됩니다. 과 같이 완전히 채워진 테마를 포함하는 스타일 리소스로 android.R.style#Theme_Material_Dialog지정하여 기본 및 강조색을 포함하여 부모 context테마의 모든 특성을 대체할 수 있습니다.

기본 및 악센트 색 themeResId 과 같은 특성을 유지하기 위해 는 대신 과 같은 android.R.style#ThemeOverlay_Material_Dialog오버레이 테마로 지정될 수 있습니다. 그러면 경고 창의 스타일을 대화 상자로 지정하는 데 필요한 창 특성만 재정의됩니다.

또는 에 themeResId 대해 부모 context의 확인된 값을 android.R.attr#alertDialogTheme사용하도록 을 0 로 지정할 수 있습니다.

에 대한 Java 설명서입니다 android.app.AlertDialog.AlertDialog(android.content.Context, int).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상

AlertDialog(IntPtr, JniHandleOwnership)

JNI 개체의 관리형 표현을 만들 때 사용되는 생성자입니다. 런타임에서 호출합니다.

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

매개 변수

javaReference
IntPtr

nativeint

IntPtrJNI(Java Native Interface) 개체 참조를 포함하는 입니다.

transfer
JniHandleOwnership

JniHandleOwnership처리 방법을 나타내는 입니다.javaReference

설명

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상

AlertDialog(Context, Boolean, IDialogInterfaceOnCancelListener)

기본 경고 대화 상자 테마를 사용하는 경고 대화 상자를 만듭니다.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V", "")]
protected AlertDialog (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.AlertDialog : Android.Content.Context * bool * Android.Content.IDialogInterfaceOnCancelListener -> Android.App.AlertDialog

매개 변수

context
Context

부모 컨텍스트

cancelable
Boolean
특성

설명

에 대한 Java 설명서입니다 android.app.AlertDialog.AlertDialog(android.content.Context).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상

AlertDialog(Context, Boolean, EventHandler)

protected AlertDialog (Android.Content.Context context, bool cancelable, EventHandler cancelHandler);
new Android.App.AlertDialog : Android.Content.Context * bool * EventHandler -> Android.App.AlertDialog

매개 변수

context
Context
cancelable
Boolean
cancelHandler
EventHandler

설명

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상