I have a splash screen activity which is just a image inside a relative layout.
When my app loads, before the splash screen is shown there is a solid color (same of windowBackgroud).
How can I make it so that it will load my splash right away like for example Googles Youtube app.
The system loads the activity with default background if no background is specified in the theme of the activity.To avoid blank screen add a custom theme with the background color or image which you want. Set this theme to the splash activity.
For detailed example refer here
Its a duplicate question please check questions before posting
Add a theme with the background you are using to your application tag in the manifest file to prevent the black screen to be drawn.
AndroidManifest.xml
But you can only set an image or bgcolor here no custom Layout