title: How to force alpha blending on a videoview
body: <p>I have an android app that displays a VideoView with buttons in front of it. On the target device  the buttons display on top properly until the VideoView redraws itself (for instance when returning from another activity). Then the buttons are hidden by the VideoView. </p>
  
  <p>This does not occur on two other devices, and as far as I can tell this is not expected behavior in Android. I believe it has to do with an error I see thrown on the device. The tag is <code>'TIOverlay'</code> and the text is </p>
  
  <pre><code>'static void overlay_control_context_t::overlay_destroyOverlay( overlay_control_device_t*, overlay_t*) : Lets Switch off Alpha Blending'
  </code></pre>
  
  <p>Is there any method to force the VideoView to recalculate it's alpha? Since the initial view is correct I assume it's just not taking into account the full layout when redrawing.</p>
  
  <p>This is my VideoView initialization code:</p>
  
  <pre><code>    //set up video
      this.videoView = (VideoView) findViewById(R.id.introVideoView);
      videoView.setZOrderOnTop(false);
  
  
      //create intro movie and begin playing
      String uri = "android.resource://"+getPackageName()+"/"+R.raw.movie;
      videoView.setVideoURI(Uri.parse(uri));
      //set to looping
      videoView.setOnPreparedListener(new OnPreparedListener(){
  
      @Override
      public void onPrepared(MediaPlayer mp)
      {
      mp.setLooping(true);
      }});
      videoView.start();
  </code></pre>
  
  <p><strong>Edit</strong> </p>
  
  <p>The layout I'm using to display the buttons in front of the video view is:</p>
  
  <p><code></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:id="@+id/mainLayout" &gt;
  
  &lt;VideoView
      android:id="@+id/introVideoView"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" /&gt;
  
  &lt;ImageButton
      android:id="@+id/exitDemoButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_alignParentRight="true"
      android:contentDescription="Exit Demo &gt;&gt;"
      android:onClick="exitDemo"
      android:background="#00000000"
      android:src="@drawable/exit_selector" /&gt;
  
  
  &lt;LinearLayout
      android:id="@+id/buttonLayout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true"
      android:orientation="horizontal" &gt;
   &lt;ImageButton
          android:id="@+id/resumeVideoButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:onClick="onResumeClicked"
          android:contentDescription="Resume Video"
          android:background="#00000000"
          android:src="@drawable/resume_selector" /&gt;
      &lt;ImageButton
          android:id="@+id/guidedTourButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:onClick="onTourClicked"
          android:contentDescription="Guided Tour"
          android:background="#00000000"
          android:src="@drawable/tour_selector" /&gt;   
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>
  </code></p>