在Android中启动之前,屏幕变白了 [英] screen goes white before splash in android

查看:93
本文介绍了在Android中启动之前,屏幕变白了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下代码在设计支持中不起作用

I have tried with below code it is not working in design support

<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>

推荐答案

在Android Studio 2.0或更高版本中,由于即时运行,这种情况正在发生.通过从设置>删除,执行,部署>即时运行并禁用其中的所有复选框中将其删除,这里是设置屏幕的快照

In Android studio 2.0 or above version it is happening because of instant run. by removing it from settings>Bulid, Execution, Deployment> Instant run and disable all the check boxes over there here is snapshot for the settings screen

这篇关于在Android中启动之前,屏幕变白了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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