다음을 통해 공유


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 됩니다.

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

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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테마 위에 적용됩니다. 기본 및 강조색을 포함하여 부모 context테마의 모든 특성을 바꾸기 위해 완전히 채워진 테마를 포함하는 스타일 리소스로 android.R.style#Theme_Material_Dialog지정할 수 있습니다.

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

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

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

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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처리 방법을 나타내는 AjavaReference

설명

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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
특성

설명

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

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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

설명

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상