The ConfigSplash object allows you to customize several visual layers of the splash screen. You do not need to override every property.
Circular Reveal
Controls the background transition effect.
backgroundColor: Color resource (e.g., R.color.purple_500).animCircularRevealDuration: Duration in milliseconds.revealFlagX: Direction for X-axis (Flags.REVEAL_RIGHT or Flags.REVEAL_LEFT).revealFlagY: Direction for Y-axis (Flags.REVEAL_BOTTOM or Flags.REVEAL_TOP).
Logo or SVG Path
You can choose between a static Logo or a dynamic SVG Path. If pathSplash is not provided, the library defaults to using the Logo.
Logo Customization:
logoSplash: Drawable resource (e.g., R.mipmap.ic_launcher).animLogoSplashDuration: Duration in milliseconds.animLogoSplashTechnique: Animation style from Techniques (e.g., Techniques.Bounce).
SVG Path Customization:
Requires an SVG path string (e.g., Constants.DROID_LOGO).
originalHeight / originalWidth: Dimensions relative to your SVG resource.animPathStrokeDrawingDuration: Duration for the stroke drawing animation.pathSplashStrokeSize: Thickness of the stroke (recommended value < 5).pathSplashStrokeColor: Color resource for the stroke.animPathFillingDuration: Duration for the fill animation.pathSplashFillColor: Color for the path object filling.
Title Customization
titleSplash: The text to display.titleTextColor: Color resource.titleTextSize: Font size (float).animTitleDuration: Duration in milliseconds.animTitleTechnique: Animation style from Techniques (e.g., Techniques.FlipInX).titleFont: Path to the font file in your assets/fonts/ directory.
// Example configuration in Kotlin
override fun initSplash(configSplash: ConfigSplash?) {
configSplash?.let {
it.backgroundColor = R.color.purple_500
it.revealFlagX = Flags.REVEAL_RIGHT
it.logoSplash = R.mipmap.ic_launcher
it.animLogoSplashTechnique = Techniques.Bounce
it.pathSplash = Constants.DROID_LOGO
it.titleSplash = "My Awesome App"
it.titleFont = "fonts/myfont.ttf"
}
}