コード例 #1
0
 @Override
 public int getCount() {
   return mCategoryReader.getCount();
 }
コード例 #2
0
 @Override
 public CharSequence getPageTitle(int position) {
   return mCategoryReader.getName(position);
 }
コード例 #3
0
 @Override
 public Fragment getItem(int position) {
   // getItem is called to instantiate the fragment for the given page.
   // Return a NewslineFragment (defined as a static inner class below).
   return NewslineFragment.newInstance(mCategoryReader.getUrl(position));
 }