title: Adding a simple ScrollView to Gallery causes a memory leak
body: <p><strong>I've run into what I can only categorize as a memory leak for ScrollView elements when using the Gallery component.</strong></p>
  
  <p>A short background. I've got an existing app that is a photo slideshow app. 
  It uses the Gallery component, but each element in the adapter is displayed in full-screen. 
  (full source is available at <a href="https://github.com/elsewhat/com.elsewhat.android.slideshow" rel="noreferrer">this link</a>)</p>
  
  <p>The adapter View element consist of an ImageView, and two TextViews for title and description. 
  As the photos are of a quite high-resolution, the app uses quite a lot of memory but the Gallery has in general manage to recycle them well.</p>
  
  <p><strong>However, when I am now implementing a ScrollView for the description TextView, I almost immediately run into memory problems</strong>. This the only change I made </p>
  
  <pre><code>&lt;ScrollView
  android:id="@+id/description_scroller"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:scrollbars="vertical"
  android:fillViewport="true"&gt;
    &lt;TextView
      android:id="@+id/slideshow_description"
      android:textSize="@dimen/description_font_size"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textColor="@color/white"
      android:layout_below="@id/slideshow_title"
      android:singleLine="false"
      android:maxLines="4"/&gt;  
  &lt;/ScrollView&gt; 
  </code></pre>
  
  <p>I did a heap dump and could clearly see that it was the Scrollview which was the root of the memory problems.</p>
  
  <p>Here are two screenshots from the heap dump analysis. Note that the ScrollView retains a reference to mParent which includes the large photo I use
  <img src="https://i.stack.imgur.com/6ZMy3.png" alt="Heap analysis - leak candidate">
  <img src="https://i.stack.imgur.com/h9Z2B.png" alt="Heap analysis - drilldown to a single ScrollView"></p>
  
  <p>PS same problem occurs if I use the TextView's scrolling (android:scrollbars = "vertical" and .setMovementMethod(new ScrollingMovementMethod());</p>
  
  <p>PSS Tried switching off persistent drawing cache, but no different dreaandroid:persistentDrawingCache="none"</p>