As a continuation of Android Studio Project - 1 . This article is about adding a splash screen to your application you don't need to start a new project edit in the existing project itself , so lets start .....
Refer to my previous post if you don't know to setup android studio and if you are starting a new project . Am writing as if you have already read the previous post so if you have not read check it - Build An Application For Your Website (Android Studio)
Watch The Video And Follow Me :
- Open Android Studio.
- Start a navigation drawer activity .
- Open an existing project or a new one (i am doing it as a continuation of Project - 1)
- After the loading and all follow these steps carefully .
- Lets start with AndroidManifest.xml
- Open app -> manifest -> AndroidManifest.xml .
- Here we need to set the launch to our splash screen activity created . So we need to change it .
- Select the entire codes and replace it with the codes below .
- Now move on to the java part .
- Open app -> java -> com.appname.app and left click , select New , Then select Java Class .
- Give name splash then click OK .
- Now a new java class is created .
- Select the entire codes and replace it with the code below .
- Change the links of Facebook , Google + , Twitter of mine with yours .
- Now make a splash screen image for your application , See the example of one which i have created .
- Name the image as splash_img and it must be in PNG format (splash_img.png)
- Now Lets Design Our Splash Screen , So Lets Move On To The Layout Part .
- Open -> app -> res -> Layout , Left click and select New , then select Layout resource file .
- Give it name activity_splash then click OK .
- Now new layout for splash screen is created , lets design it .
- Select the entire codes and replace it with the code below .
- Now this is how it looks like in the design part .
- We do have added a new colour (white) , so lets add it in the colour section .
- Open app -> res -> values -> color .
- Select the entire codes and replace it with the code below .
- Now go to res -> values -> styles.xml
- Select the entire codes and replace it with the code below .
- Add this files to the drawable .
- Download this file extract the file copy the three pictures go to android studio -> drawable and paste it there .
- OK splash screen have been added successfully to your application .
- Now Goto Build -> Build Apk .
Part 1 - Build An Application For Your Website ( Link To The Post - Click Here )
Part 3 - Set Up An In-Build Update Checker For Your Application ( Link To The Post - Click Here )
Post A Comment:
0 comments: