Saturday, March 12, 2016

How To fix white screen on app Start up?


Problem: I have an android app which displays white screen for 2sec on startup.

Solution: Add custom style.

2 comments:

  1. I am also facing the same problem, please let me know if you have fixed it?

    ReplyDelete
  2. Settings. File>Settings>Build,Deployment>Instant Run Deselect all options shown there.
    and add below line in your style.xml

    " item name="android:windowDisablePreview" true/item"


    apply apply them as your custom style in AndroidMainfest.xml

    android:theme="@style/AppTheme"

    ReplyDelete