Xamarin Android-Android 10中闪屏闪烁 [英] Xamarin Android - Splash screen flickering in Android 10
本文介绍了Xamarin Android-Android 10中闪屏闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经为我的应用程序更新了一个新的闪屏。我尝试了这个similar question给出的所有建议,但仍然有闪屏闪烁的问题。我发现这个问题只出现在安卓10上,安卓9.0及更低版本的设备运行良好。
我绞尽脑汁,但我仍然不知道问题的原因是什么。如果有人能给我一些建议,我将不胜感激。谢谢。推荐答案
我想我也有这个问题。不要使用单独的水花活动。设置您的MainActivity
Theme=@style/Theme.Splash
。然后在MainActivity.OnCreate
中手动更改主题
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.SetTheme(Resource.Style.MainTheme);
base.OnCreate(savedInstanceState);
这篇关于Xamarin Android-Android 10中闪屏闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文