// OK,Dialog팝업
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.SetTitle("확인");
alert.SetMessage("저장하시겠습니까?");
alert.SetPositiveButton("확인", SaveEvent);
alert.SetNegativeButton("취소", (senderAlert, args) => {});
Dialog dialog = alert.Create();
dialog.Show();

 private void SaveEvent(object sender, DialogClickEventArgs args)
{

 

// 단순 Dialog
public static void OpenDialogAction(Context context, string title, string content)
{
    Dialog dlg = new Dialog(context);
    TextView text = new TextView(context);
    text.Text = content;
    dlg.SetContentView(text);
    dlg.SetTitle(title);
    dlg.Show();
}

+ Recent posts