DisplayToast消息不适用于Android 6.0

时间:2017-07-31 08:24:25

标签: xamarin xamarin.android

我在Xamarin Android平台上工作。 我使用了一个简单的DisplaYToast消息

  

DisplayToast(“Error”,ToastType.Error);

但此消息未出现在Android 6.0中。 它适用于所有设备上的Android 7.0牛轧糖。

有没有人遇到过这个问题?

1 个答案:

答案 0 :(得分:0)

使用它来显示xamarin android中的toast消息。

Toast.MakeText(this,"Error",ToastLength.Short).Show();