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.javaActivity2.javastyles.xmlactivity_main.xmlactivity_2.xmlactivity_3.xml