title: glsurfaceview inside a scrollview, moving but not clipping
body: <p>I have a scrollview with a linear layout inside. One of the elements inside this linearlayout is a glsurfaceview.</p>
  
  <p>This all works correctly and when I scroll the glsurfaceview moves up and down however when the glsurfaceview reaches the top or bottom of where it should of the scrollview where it should be clipped it is not and is continued outside of the scrollview. This screenshot should make it clearer:</p>
  
  <p><img src="https://i.stack.imgur.com/NwuVV.png" alt="glsurfaceview not clipped correctly"></p>
  
  <p>Don't think it's completly nessecary but here is my layout.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="fill_parent" 
  android:layout_height="wrap_content" 
  android:orientation="vertical"
  android:padding="6dip"
  &gt;
  &lt;ScrollView
  android:layout_width="fill_parent" 
  android:layout_height="wrap_content" 
  &gt;
      &lt;LinearLayout
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:orientation="vertical"
      &gt;
          &lt;LinearLayout
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" 
          android:orientation="horizontal"
          &gt;
              &lt;LinearLayout
              android:layout_width="fill_parent" 
              android:layout_height="wrap_content" 
              android:orientation="vertical"
              android:layout_weight="1"
              &gt;
              &lt;!-- LOTS OF SEEKBARS/TEXTVIEWS --&gt;
              &lt;/LinearLayout&gt;
              &lt;LinearLayout
                  android:layout_width="fill_parent" 
                  android:layout_height="wrap_content" 
                  android:layout_weight="1.4"
                  android:layout_marginRight="10dip"
                  android:layout_marginLeft="10dip"
                  android:orientation="horizontal" &gt;
                  &lt;android.opengl.GLSurfaceView android:id="@+id/glview"  
                  android:layout_width="100px"
                  android:layout_height="250px"/&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
          android:layout_marginTop="6dip"
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" 
          android:layout_weight="1"
          android:orientation="horizontal" &gt;
              &lt;!-- OK/CANCEL BUTTONS --&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>All help much appreciated :)</p>