Malik
Malik

Reputation: 5043

screen goes white before splash in 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>

Upvotes: 0

Views: 548

Answers (2)

Malik
Malik

Reputation: 5043

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

enter image description here

Upvotes: 2

Simon Wanjau.
Simon Wanjau.

Reputation: 173

Use the following code in you styles.xml

 <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

Upvotes: 0

Related Questions