The documentation gives the impression that all classes are top level, but they are not. Check the source code on the zip file and you will see DemoCollectionPagerAdapter
and DemoObjectFragment
are nested inside CollectionDemoActivity
.
This is the layout of the classes.
public class CollectionDemoActivity extends FragmentActivity {
...
public static class DemoCollectionPagerAdapter extends FragmentStatePagerAdapter {
...
}
public static class DemoObjectFragment extends Fragment {
...
}
}