vendredi 27 octobre 2017

Welcome Screen with UpToDown Animation + Source Code





hey guys, this video we going to make a welcome screen /splash screen but this time with a button and a smooth animation from up to down ...





let s start with designing our splash screen, in the splash activity add the following code :


activity_welcome.xml

Now we need to create our two animations the first will animate our View (which is the first LinearLayout L1) from up to down, the second animation will animate the second layout from down to up. inside anim folder create two xml files and add the following code :


uptodown.xml



downtoup.xml

final step is to create our java class in WelcomeActivity.java class add the following code :



WelcomeActivity.java

4 commentaires: