应用程序启动时的 Xamarin 跨平台启动画面

Xamarin Cross Platform Splash Screen on App boot

哟。你们中的一些人可能已经知道,但 Xamarin 应用程序的启动速度非常慢,并且在执行任何代码行之前都会发生延迟 - 至少我通过一些断点来解决这个问题。 所以我想用 Splashscreen 来掩盖它。但由于 Xamarin 适用于多个平台,我想......好吧......使用跨平台代码。 最重要的部分是:我不想掩盖我的代码延迟。我希望 App 不会像现在这样以白色空白屏幕打开,但是例如带有图像或一些动画或类似的东西。

是的,我已经用谷歌搜索了一下,但我发现的所有内容似乎都是 android 特定的或 iphone 的东西,或者只是在系统启动后才会生效。

目前还没有跨平台的方法来做到这一点。 (2017 年/12 月回答)
您需要为每个平台制作它。

Android: https://developer.xamarin.com/guides/android/user_interface/splash-screen/

iOS: https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/