@Override
            public void onPageSelected(int position) {
                // When changing pages, reset the action bar actions since they are dependent
                // on which page is currently active. An alternative approach is to have each
                // fragment expose actions itself (rather than the activity exposing actions),
                // but for simplicity, the activity provides the actions in this sample.
                invalidateOptionsMenu();
            }
The pager adapter, which provides the pages to the view pager widget.
app/src/main/java/home/smart/fly/animations/ui/activity/demos/ScreenSlideActivity.java