In this tip i am going to share a simple and use full code which help you to save extra screen and also a simple animation between layout in android

Layout Code

Java Code

That all, you can download complete code from above download link.