Example #1
0
 public static ImageZoomFragment newInstance(Uri fileUri, int position) {
   ImageZoomFragment fragment = new ImageZoomFragment(fileUri, position);
   Bundle args = new Bundle();
   fragment.setArguments(args);
   return fragment;
 }
Example #2
0
 public static ImageZoomFragment newInstance(Bitmap bitmap, Rect rect) {
   ImageZoomFragment fragment = new ImageZoomFragment(bitmap, rect);
   Bundle args = new Bundle();
   fragment.setArguments(args);
   return fragment;
 }