嘿我想检测弹出窗口外的点击这里是我的代码
builder = new AlertDialog.Builder(Context);
builder.SetTitle(Resource.String.rating_dialog_title);
builder.SetMessage(Resource.String.rating_dialog_desc);
builder.SetNegativeButton(Resource.String.yes, (s, e) =>
{
SetAppRateStatus(AppRateStausEnum.RateNow);
IMvxWebBrowserTask help = new MvxWebBrowserTask();
help.ShowWebPage("https://play.google.com/store/apps/details");
});
builder.SetNeutralButton(Resource.String.no, (s, e) =>
{
SetAppRateStatus(AppRateStausEnum.RemindMeLater);
});
builder.SetPositiveButton(Resource.String.never, (s, e) =>
{
SetAppRateStatus(AppRateStausEnum.Never);
});
所以请建议我检测弹出窗口外点击的代码, 谢谢
答案 0 :(得分:0)
我想你是在谈论
builder.SetCancelable();
检查此链接
Android.App.AlertDialog.Builder.SetCancelable Method
或
builder.SetCanceledOnTouchOutside ()
点击下面的链接