本来想在项目中加一个启动时的闪屏效果,结果发现闪屏效果有了,但是却使在App初始化的白屏之后才有闪屏,用户体验很差,看起来也不美观。
1.在网上搜了一下
网上我觉得解决很好的方案
2.如果报错:Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
是需要在onCreate()方法中将Theme装换成原来的AppTheme:
@Override
protected void onCreate(Bundle savedInstanceState) {
setTheme(R.style.AppTheme);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initView();
initListener();
}
本文地址:https://blog.csdn.net/weixin_45219242/article/details/107377617
如对本文有疑问, 点击进行留言回复!!
Algebra:Chapter 0 - 预备知识: 集合论和categories
springboot + vue上传图片在服务器并实现在线预览
请谨慎使用增强for循环,刚接触Java值得一看(手动狗头)
【Nginx】还不会使用Nginx解决跨域问题?肝这一篇就够了!!
网友评论