我在xamarin android app中使用webview元素。我警告问题,我不能在alert.Cancel()之后使用webview。或alert.Dismiss();
您是否知道为什么在关闭警报对话框后我无法触摸或点击webview?
更新:
view = FindViewById<Webview>(Resource.Id.MyView)
view.Settings.JavaScriptEnabled = true;
view.LoadUrl("www.google.com");
AlertDialog alert = new AlertDialog.Builder(this).Create();
alert.SetTitle("Uppss");
alert.SetMessage("Something wrong!");
alert.SetCancelable(true);
alert.SetCanceledOnTouchOutside(false);
alert.SetButton( "Go Back", (go, bk) =>
{
alert.Cancel();
alert.Dismiss();
});
alert.Show();