Android(安卓)Activity启动慢
16lz
2021-12-04
现象
Acitivity启动后总是先看到黑色背景,然后才会显示界面,这样体验不是太好
解决方案 - 修改主题
<application android:theme="@style/MyTheme"
<resources> <style name="MyTheme" parent="@android:style/Theme.Black.NoTitleBar"> <item name="android:windowBackground">@android:color/white style>
参考:
http://www.eoeandroid.com/thread-153840-1-1.html
更多相关文章
- Android学习中遇到的问题及解决方案
- android-EditText输入框被键盘遮挡问题解决方案
- android ActionBarImpl can only be used with a compatible win
- Android游戏可能遇到的3个问题及解决方案
- Android访问本地服务器(localhost)的解决方案
- Android(安卓)Studio failed to open by giving error “Files L
- 【 Android(安卓)】Android(安卓)Runtime Permissions 解决方案(
- Android抛出异常NetworkOnMainThreadException解决方案
- Android: couldn't save which view has focus because the focu