Though there are good answers, I will show the google recommended way:
1)First create a Theme
for splash screen:
you have a theme called splashscreenTheme
, your launcher theme would be:
Note:
android:windowBackground
already sets your splashscreen image no
need to do this in UI again.
you can also use color here instead of a drawable.
2)Set the theme to manifest of splashscreenActivity
3)make sure you launch_screen drawable
is not in drawable
folder if your image is not small.
It will result in faster launch screen start and save you from the black screen
It also avoids extra overdraw