Android Splash Screen shifts

I found the solution:

You should remove ImageView because you've already set splash via android:windowBackground. Also remove android:background="@color/splash_background_color" from FrameLayout to make it transparent

Btw, you could delete res/layout/launch_screen.xml if you are not going to draw some layouts over your splash.

For Activity don't call setContentView()

For Fragment don't override onCreateView()

It's ok, Android doesn't require to set layout for them.


In styles.xml, replace:

<item name="android:windowBackground">@drawable/background_splash</item>

with

<item name="android:background">@drawable/background_splash</item>

Note the windowBackground -> background

That solves the issue for me.