code: @Override
      public Object instantiateItem(ViewGroup container, int position) {
          LayoutInflater inflater = (LayoutInflater) container.getContext()
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
          View view = inflater.inflate(R.layout.fullscreen_image, null);
  
          ImageView imageView = (ImageView) view.findViewById(R.id.iv);
          final LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.ll);
  
          String image = images.get(position);
  
          Context context = imageView.getContext();
          int width = DisplayUtility.getScreenWidth(context);
  
          fullScreenImageLoader.loadFullScreenImage(imageView, image, width, linearLayout);
  
          container.addView(view, 0);
  
          return view;
      }
docs: endregion