SplashScreenHelper is a lightweight, easy-to-use android library that will help you add a splash screen to your app. In a few easy steps, you can add your logo and some text and animate it. Or perhaps you want to add a video. SplashScreenHelper can do that also.
I got the idea for it when I couldn’t find a similar library with the functionality and customization option that I needed. All you have to do is to implement it and give it some images, text or video.
Change sub text color in HEX format (eg. “#FF0000)
subTextTypeface(Int)
Change sub text Typeface (eg. Typeface.BOLD)
subTextSize(Int)
Change sub text size
showBottomImage(boolean)
Show or hide image instead of text and sub text
bottomImageResource(Int)
Add your bottom image resource
bottomImageHeight(Int)
Change the height of the bottom image
backgroundColor(Int)
Add background color to the whole splash screen (eg. Color.RED)
backgroundColorHex(String)
Add background color to the whole splash screen in HEX format (eg. “#FF0000)
setBackgroundImageResource(Int)
Add an image as background to the whole splash screen
dividerHeight(Int)
Change space height between logo and text
textDividerHeight(Int)
Change space height between text and sub text
showProgressBar(boolean)
Show or hide the progress bar
progressBarType(Int)
Choose progress bar type (eg. ProgressBarType.HORIZONTA)
progressBarPosition(Int)
Change the position of the progress bar (eg. ProgressBarPosition.INSTEAD_OF_TEXT)
progressBarColor(Int)
Change progress bar color (eg. Color.RED)
progressBarColorHex(String)
Change progress bar color in HEX format (eg. “#FF0000)
delay(Long)
Set the delay before animation start in milliseconds
duration(Long)
Set the duration of the animation in milliseconds
pause(Long)
Set pause after animation in milliseconds
animationType(AnimationType)
Choose an animation type (eg.AnimationType.FLY_IN)
finishOnClick(boolean)
End splash screen on click
showVideo(boolean)
Show or hide video instead of logo, text and sub text
videoResource(Int)
Add your video resource
fitVideoToScreen(boolean)
Changes scale of video to fit in the screen
loopVideo(boolean)
Loops video indefinitely
fullscreen(boolean)
Show splash screen in fullscreen
start()
Starts splash screen
ProgressBarType
Type
Description
CIRCULAR
Round progress bar
HORIZONTAL
Linear progress bar
ProgressBarPosition
Position
Description
TOP
Top of the screen
BOTTOM
Bottom of the screen
UNDER_TEXT
Underneath the text
INSTEAD_OF_TEXT
Hides text and sub text and show progress bar
AnimationType
Position
Description
FLY_IN
Logo flies in from the top and text and sub text flies in from the bottom
FLY_OUT
Logo flies out to the top and text and sub text flies out to the bottom
FADE_IN
Fades in
FADE_OUT
Fades out
If you have some ideas about what should I add or change, or maybe you have some issues with this library, please let me know. I will be happy to hear your feedback.