コード例 #1
0
    /** Returns a fragment that displays the Bitmap at the requested position in the directory. */
    @Override
    public Fragment getItem(int position) {
      Log.v(TAG, "getItem" + position);

      mCurrentImage = position;

      // Create a new ImageDetailFragment holding the Image
      // stored at the File in the requested position.
      return ImageDetailFragment.newInstance(mBitmapFiles.get(position));
    }
コード例 #2
0
 @Override
 public Fragment getItem(int position) {
   return ImageDetailFragment.newInstance(Images.imageUrls[position]);
 }