title: Android VideoView: Video view is much darker in a dialog view
body: <p>Hi all 
  I have a problem with embedding a video view inside a dialog view </p>
  
  <p>everything works fine except that the video displayed in the Dialog is much darker that if displayed in the rest of the activity </p>
  
  <p>any ideas ? </p>
  
  <p>here is some code </p>
  
  <pre><code>button1main.setOnClickListener(new OnClickListener() {
  
                  public VideoView videoView = null;
                  @Override
                  public void onClick(View v) {
                      //set up dialog
                      Dialog dialog = new Dialog(CustomDialog.this);
                      dialog.setContentView(R.layout.maindialog);
                      //dialog.setTitle("This is my custom dialog box");
                      dialog.setCancelable(true);
  
  
                      this.videoView = (VideoView) dialog.findViewById(R.id.video);
                      VideoPlayer vp = new VideoPlayer(this.videoView, null);
                      vp.playVideo();
  
                      //set up button
                      Button button = (Button) dialog.findViewById(R.id.Button01);
                      button.setOnClickListener(new OnClickListener() {
                      @Override
                          public void onClick(View v) {
                              finish();
                          }
                      });
                      //now that the dialog is set up, it's time to show it    
                      dialog.show();
                  }
              });
  </code></pre>