To add the animations, right-click on anim -> New -> Animation resource file.

slide_in_left.xmlslide_in_right.xmlslide_out_left.xmlslide_out_right.xmlMainActivity.javaactivity_main.xmlActivity2.javaactivity_2.xmlActivity3.javaactivity_3.xmlstyles.xml