@Override public void initSplash(ConfigSplash configSplash) { FirebaseMessaging.getInstance().subscribeToTopic(Define.APP_NAME); mDeviceToken = FirebaseInstanceId.getInstance().getToken(); Log.d("token", "Refreshed token: " + mDeviceToken); mFirebaseAnalytics = FirebaseAnalytics.getInstance(this); Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "SplashScreen"); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.APP_OPEN, bundle); configSplash.setBackgroundColor(R.color.accent); configSplash.setAnimCircularRevealDuration(Define.SPLASH_SCREEN_BACKGROUND_TIME); configSplash.setRevealFlagX(Flags.REVEAL_RIGHT); configSplash.setRevealFlagY(Flags.REVEAL_BOTTOM); configSplash.setLogoSplash(R.drawable.logo_logishub); configSplash.setAnimLogoSplashDuration(Define.SPLASH_SCREEN_LOGO_TIME); configSplash.setAnimLogoSplashTechnique(Techniques.Bounce); configSplash.setTitleSplash("NeoSystems co., Ltd."); configSplash.setTitleTextColor(R.color.monsoon); configSplash.setTitleTextSize(16f); configSplash.setAnimTitleDuration(Define.SPLASH_SCREEN_TEXT_TIME); configSplash.setAnimTitleTechnique(Techniques.FadeIn); }
@Override public void initSplash(ConfigSplash configSplash) { /* you don't have to override every property */ // Customize Circular Reveal configSplash.setBackgroundColor(R.color.colorPrimary); // any color you want form colors.xml configSplash.setAnimCircularRevealDuration(2000); // int ms configSplash.setRevealFlagX(Flags.REVEAL_RIGHT); // or Flags.REVEAL_LEFT configSplash.setRevealFlagY(Flags.REVEAL_BOTTOM); // or Flags.REVEAL_TOP // Choose LOGO OR PATH; if you don't provide String value for path it's logo by default // Customize Logo configSplash.setLogoSplash(R.drawable.ic_icon); // or any other drawable configSplash.setAnimLogoSplashDuration(2000); // int ms configSplash.setAnimLogoSplashTechnique(Techniques.Wobble); // choose one form Techniques (ref: // https://github.com/daimajia/AndroidViewAnimations) // Customize Path /*configSplash.setPathSplash(Constants.DROID_LOGO); //set path String configSplash.setOriginalHeight(400); //in relation to your svg (path) resource configSplash.setOriginalWidth(400); //in relation to your svg (path) resource configSplash.setAnimPathStrokeDrawingDuration(3000); configSplash.setPathSplashStrokeSize(3); //I advise value be <5 configSplash.setPathSplashStrokeColor(R.color.accent); //any color you want form colors.xml configSplash.setAnimPathFillingDuration(3000); configSplash.setPathSplashFillColor(R.color.Wheat); //path object filling color */ // Customize Title configSplash.setTitleSplash("Cero Filas"); configSplash.setTitleTextColor(R.color.colorFondoBlanco); configSplash.setTitleTextSize(30f); // float value configSplash.setAnimTitleDuration(3000); configSplash.setAnimTitleTechnique(Techniques.FlipInX); configSplash.setTitleFont( "fonts/Nunito-Bold.ttf"); // provide string to your font located in assets/fonts/ }