@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.file_path.
        int id = item.getItemId();

        switch (id) {
            case R.id.anim1:
                mViewPager.setPageTransformer(true, new DepthPageTransformer());
                break;
            case R.id.anim2:
                mViewPager.setPageTransformer(true, new ZoomOutPageTransformer());
                break;
            case R.id.anim3:
                mViewPager.setPageTransformer(true, new MyCubeTransformer(90));
                break;
            default:
                break;
        }


        return super.onOptionsItemSelected(item);
    }
The {@link ViewPager} that will host the section contents.
app/src/main/java/home/smart/fly/animations/tradition/VPAnimActivity.java