title: android videoview black background
body: <p>After looking around in order to avoid the black background before videoview is prepared, i've decided to post here a fix / trick.</p>
  
  <p>Well, if you have no views on top of the videoview, use the "ZOrder" method:</p>
  
  <pre><code>videoView.setZOrderOnTop(true); //to "hide" before setting up your video
  videoView.setZOrderOnTop(false); //after, in your videoView.setOnPreparedListener
  </code></pre>
  
  <p>BUT if you have some views on top of your videoview, this method will hide everything that has meant to be on top of your videoview, so just go with the "background" method, setting it before and after video is prepared:</p>
  
  <pre><code>video.setBackgroundColor( some color, maybe your app background ); //before
  video.setBackgroundColor(Color.TRANSPARENT); //after, on prepare
  </code></pre>