title: fullscreen alert dialog with image
body: <p>I have created a custom alert dialog with an image view attached to it and wanted to know if it was possible to increase the size of the dialog and image to fit the whole screen?  If so how would you do this?  </p>
  
  <pre><code>private void loadPhoto(String filepath, int xmlView, int layoutView, int imageView){
  
      //Bitmap operations
      final BitmapFactory.Options options = new BitmapFactory.Options();
      options.inJustDecodeBounds = true;
      BitmapFactory.decodeFile(filepath, options);
  
      //calculate the inSampleSize
      options.inSampleSize = calculateSampleImageSize(options, 128, 96);
      options.inJustDecodeBounds = false;
  
       AlertDialog.Builder imageDialog = new AlertDialog.Builder(context);
       LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);
       //inflate the view
       View layout = inflater.inflate(xmlView, 
               (ViewGroup)findViewById(layoutView));
  
       ImageView image = (ImageView) layout.findViewById(imageView);
       image.setImageBitmap(BitmapFactory.decodeFile(filepath, options));
       imageDialog.setView(layout);
       imageDialog.setPositiveButton("Return", new DialogInterface.OnClickListener() {
  
          @Override
          public void onClick(DialogInterface dialog, int which) {
              // TODO Auto-generated method stub
              dialog.dismiss();
          }
      });
  
       imageDialog.create();
       imageDialog.show();
  
  }
  </code></pre>