use of com.karumi.rosie.sample.characters.view.fragment.CharactersFragment in project Rosie by Karumi.
the class MainActivity method initializeViewPager.
private void initializeViewPager() {
adapter = new FragmentAdapter(getFragmentManager());
viewPager.setAdapter(adapter);
Fragment charactersFragment = new CharactersFragment();
Fragment comicsFragment = new ComicSeriesFragment();
adapter.addFragment(charactersFragment, getString(R.string.characters_page_title));
adapter.addFragment(comicsFragment, getString(R.string.comic_series_page_title));
adapter.notifyDataSetChanged();
pagerTabView.setupWithViewPager(viewPager);
}
Aggregations