code: protected ImageView newImageViewInstance() {
          ImageView iv = new ImageView(context);
          iv.setScaleType(ImageView.ScaleType.CENTER_CROP);
  
          // SlideShowView is a subclass of RelativeLayout. Set the layout parameters accordingly
          RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
          lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);
          lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
          iv.setLayoutParams(lp);
  
          return iv;
      }
docs: Create the ImageView that will be used to show the bitmap.
  
  @return A new ImageView instance