KenBurnsView Splash creen

This is the second part of  How to add Splash Screen in Android With KenBurnsView. If you didn’t read Part I please read it HERE before proceeding to Part II.

NOTE: In this post we deal with mostly Java files. When copying code please remove entire code in your java files before pasting codes from here. And also change package names when ever needed. you may see errors after pasting the codes, don’t worry by the end all errors will be gone. You just follow the procedure here ignoring the errors.

  • Now create a new java file in you project with Name IncompatibleRatioException.java and paste below code

  • In above code change Package Name com.karthik.kenburnsview in first line to your package name
  • Next create KenBurnsView.java file and add below code to that file.

  • In above code Change Package name in first line com.karthik.kenburnsview to your package name
  • Next create another java file with Name MathUtils.java and add below code.

  • In above code Change Package name in first line com.karthik.kenburnsview to your package name
  • Next create another java file with Name RandomTransitionGenerator.java and add below code.

  • In above code Change Package name in first line com.karthik.kenburnsview to your package name.
  • Next create another java file with Name RobotoTextView.java and add below code.

  • In above code Change Package name in first line & 7th line  com.karthik.kenburnsview to your package name.
  • Next create another java file with Name SplashActivity.java and add below code.

  • In above code Change Package name in first line, 15th & 16 lines com.karthik.kenburnsview to your package name.
  • Next create another java file with Name Transition.java and add below code.

  • In above code Change Package name at two places first line and some where in the middle com.karthik.kenburnsview to your package name.
  • Next create another java file with Name TransitionGenerator.java and add below code.

  • In above code Change Package name in first line com.karthik.kenburnsview to your package name.
  • Final step is add our SplashScreen actvity to your AndroidManifest.xml using below code.

  • And change intent-filter of your main activity from LAUNCHER to DEFUALT.
  • Now rebuild your project in Android Studio using option Build->Rebuild Project.
  • After rebuilding your project generate signed Apk and test your app in Emulator or Android Device.

If  you like my post and website please share the content with your friends and help my website to grow.

Click on below link to download source code.

[ihc-hide-content ihc_mb_type=”show” ihc_mb_who=”reg” ihc_mb_template=”1″ ]Download[/ihc-hide-content]