title: Custom View: Setting visibility to GONE not working as expected
body: <p>I've created a custom view, seen below. I declare this custom view in other xml files. The issue I'm having is that when I call </p>
  
  <blockquote>
    <p>MyVideoView.setVisibility(View.GONE)</p>
  </blockquote>
  
  <p>The video that was previously drawn on the SurfaceView is still visible. Shouldn't setting the visibility of the whole View affect the children? Am I missing something? </p>
  
  <pre><code>public class MyVideoView extends FrameLayout {
  
      private SurfaceView videoSurfaceView;
      private SurfaceView subtitleSurfaceView;
  
      public MyVideoView(Context context) {
          super(context);
          initView(context);
      }
  
      private void initView(Context context) {
          View.inflate(context, R.layout.widget_my_video_view, this);
  
          videoSurfaceView = (SurfaceView) findViewById(R.id.svPlaybackSurface);
          subtitleSurfaceView = (SurfaceView) findViewById(R.id.svSubtitles);
      }    
  }
  </code></pre>
  
  <p>widget_my_video_view.xml</p>
  
  <pre><code>&lt;FrameLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;SurfaceView
          android:id="@+id/svPlaybackSurface"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="center"/&gt;
  
      &lt;SurfaceView
          android:id="@+id/svSubtitles"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|center_horizontal"
          android:layout_marginStart="@dimen/paddingRegular"
          android:layout_marginEnd="@dimen/paddingRegular"
          android:layout_marginBottom="@dimen/paddingLarge"
          android:visibility="invisible"/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>