title: Use View.isInEditMode() in your custom views to skip code
body: <p>i'm using Youtube .jar to show video youtube player and i got render error</p>
  
  <pre><code>The following classes could not be instantiated:
  
  - com.google.android.youtube.player.YouTubePlayerView (Open Class, Show 
      Exception, Clear Cache)
  
      Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. 
  </code></pre>
  
  <p>My Code XML :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  
  &lt;com.google.android.youtube.player.YouTubePlayerView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:id="@+id/video"
      android:background="#fff"/&gt;
  
     &lt;/LinearLayout&gt;
  </code></pre>