3
C#으로 Android 응용 프로그램에서 경고 대화 상자를 만들려고합니다. 불행하게도 나는이 오류가 발생합니다 :다음 메서드 나 속성 사이에 호출이 모호합니다. 'Android.App.AlertDialog.Builder.SetPositiveButton
The call is ambiguous between the following methods or properties: `Android.App.AlertDialog.Builder.SetPositiveButton(string, System.EventHandler<Android.Content.DialogClickEventArgs>)' and `Android.App.AlertDialog.Builder.SetPositiveButton(string, Android.Content.IDialogInterfaceOnClickListener)' (CS0121) (App)
이 내 코드입니다 :
var alert = new AlertDialog.Builder(this).SetTitle("Title").SetMessage("Message").setPositiveButton("OK", null);
alert.Show();
return true;
내가 잘못 뭐하는 거지?
Android.Content.DialogClickEventArgs에 'null'을 전송합니다. – Luksprog