title: Views overlayed above YouTubePlayerFragment or YouTubePlayerView in the layout hierarchy cause playback to pause immediately
body: <p>I'm using the YouTube Android Player API and want to overlay a view on top of a <code>YouTubePlayerFragment</code> in order to display contextual information and controls above the playing video. </p>
  
  <p>Unfortunately it seems playback does not work correctly in either a <code>YouTubePlayerFragment</code> or <code>YouTubePlayerView</code> whenever a there is one or more views stacked above the player in the layout hierarchy. Playback occurs for less than half a second before immediately pausing.</p>
  
  <p>The issue can be reproduced by using the following layout for the Simple PlayerFragment demo that ships with the SDK:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
    &lt;fragment
        android:name="com.google.android.youtube.player.YouTubePlayerFragment"
        android:id="@+id/youtube_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/&gt;
  
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="@android:style/TextAppearance.Small"
        android:layout_alignParentTop="true"
        android:text="@string/playerfragment_text"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I have tried various layout configurations using both <code>FrameLayout</code> and <code>RelativeLayout</code> but the issue is always the same. I realise this API has been released as "experimental", but if this is a known issue it is a pretty major blocker for a lot of implementations. Does anyone have a good solution or workaround?</p>