如何解决应用上的白色屏幕启动? [英] How To fix white screen on app Start up?

查看:205
本文介绍了如何解决应用上的白色屏幕启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,它会显示白色画面为2秒的启动。我的其他应用程序不这样做。但是这一次呢。我还实施启动画面,希望这将解决这个问题,我应该增加我闪屏的睡眠时间? 谢谢

i have an android app which displays white screen for 2sec on startup. my other apps don't do so. but this one does. i have also implemented splashscreen in the hope that this would fix this, should i increase my splashscreen sleep time? Thanks

推荐答案

刚刚提到的透明主题,在AndroidManifest.xml首发活动 文件。
像:

Just mention the transparent theme to the starting activity in the AndroidManifest.xml file.
Like:

<activity
        android:name="first Activity Name"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" >
 <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
 </activity>

这篇关于如何解决应用上的白色屏幕启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆