Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Forms DisplayAlert-Android中的重复标题_C#_Xamarin_Xamarin.forms - Fatal编程技术网

C# Forms DisplayAlert-Android中的重复标题

C# Forms DisplayAlert-Android中的重复标题,c#,xamarin,xamarin.forms,C#,Xamarin,Xamarin.forms,我正在尝试使用以下代码在Xamarin.Forms项目中显示警报: DisplayAlert("¡Oops!", "Nos es imposible ubicarte, intenta ubicarte manualmente", "Ok"); 在iOS中一切正常,但在Android模拟器中我看到了重复的标题。请看下图 这种行为正常吗?提前谢谢 清除解决方案->删除所有项目文件夹中的obj和bin目录->重建Droid项目->检查它是否正常工作Oops:D 我的错。我正在为Xamarin使用G

我正在尝试使用以下代码在Xamarin.Forms项目中显示警报:

DisplayAlert("¡Oops!", "Nos es imposible ubicarte, intenta ubicarte manualmente", "Ok");
在iOS中一切正常,但在Android模拟器中我看到了重复的标题。请看下图

这种行为正常吗?提前谢谢


清除解决方案->删除所有项目文件夹中的obj和bin目录->重建Droid项目->检查它是否正常工作

Oops:D

我的错。我正在为Xamarin使用Grial UI工具包。表单。。。因此,解决方案如下:


正常行为,不。。。。您使用的是什么版本的Xamarin.Forms,模拟器运行的是什么API级别?模拟器运行的是API lvl 23。我当前的Xamarin.Forms版本是:2.3.3.193DisplayAlert正在使用AlertDialog.Builder在Android上,不知道“双重标题”是如何发生的。。。。至少不是从这个代码:谢谢你的回复,是的。。。我不明白为什么会这样。我将在一台设备上测试它,看看会发生什么。感谢您的回复,我尝试了您提出的解决方案,但问题仍然存在。