How to Add a Animated Splash Screen in any Android Studio Project

Hey Lovely Peoples, how was your day going on..in this article i will explain you, how to add animated splash screen in any android studio project or any new project even i provide you the source code for this to make it simple for you but if you want to start from beginning then you can read my previous articles where i explained you :


  1. How to Download and Setup Android Studio
  2. Basics of Android App Development
  3. Convert a Website into Android Application with Navigation Drawer Layout
  4. How to enable full screen for embedded video in webview and stop reload on orientation change

And in future you get so many tutorials regarding android and technology on this blog but here without wasting any time lets add a splash screen in your project.



Please follow below steps to add animated Splash Screen:


Steps:

1. Create a Java Class with a Name Splash.java , you can use name as per your choice and paste there below code and just change the package name with your package name in line 1 :

2. Now Create a Folder under res folder with the name "anim" and under anim folder create a new animation resource file with the name mytransition.xml , you can change the name but if you change name you have to change it everywhere in my source code, so don't change it and paste there below code :

You can change the duration of animation here

 3. Now under layout folder create a new xml file with the name activity_splash.xml and paste the below code and change the line no. 7 & 26 with your image and in line no. 9 change the package name with your package name and for image you just have to copy your image from your desire location and paste it in the folder drawable.
4. Now Everything is almost completed you just have to create a activity before MainActivity in Manifest file, just copy the below source code and paste it before the mainactivity in manifest file :

So now everything is completed and this is the method of creating splash screen in android app project. Hope now you face no issue regarding this but if you still have some question then do comment your feedback in comment area.

Thanks.

Post a Comment

3 Comments

  1. I am add code but dubal app show on my phone one app shoe splash sreen and second not show splash screen how to solution

    ReplyDelete
  2. Kraton | Online Casino | Kadangpintar
    Kraton is one of the most famous casino games available in India for Indian players. The game is 인카지노 one worrione of the 온카지노 most popular in India and many Indian

    ReplyDelete
  3. The King Casino Archives - Hertzaman
    The https://sol.edu.kg/ King Casino Archives, including news, articles, videos, address, herzamanindir.com/ gaming https://septcasino.com/review/merit-casino/ info, The casinosites.one King Casino & Hotel in Henderson, NV is one of the newest hotels and motels septcasino on

    ReplyDelete