title: WebView in ScrollView: "View too large to fit into drawing cache" - how to rework layout?
body: <p>I have a layout with a <code>ScrollView</code>, which contains the following views: <code>ImageView</code>, <code>TextView</code>, <code>WebView</code>, <code>TextView</code>. (This is because I would like to scroll the whole together, not just the contents of the <code>WebView</code>)</p>
  
  <p>After loading some HTML in the <code>WebView</code>, I receive the following:</p>
  
  <pre><code>WARN/View(632): View too large to fit into drawing cache, needs 14236800 bytes, only 1536000 available
  </code></pre>
  
  <p>...and the content of the <code>WebView</code> won't display. After removing the <code>ScrollView</code>, the warning disappears and all is well, except that I lose the wanted scroll functionality.</p>
  
  <p>First: I know that <em>trying to use a <code>ScrollView</code> inside another <code>ScrollView</code> is a bad thing in general</em>, but I'm not 100% sure that in every case there's an equivalent solution without using <code>ScrollView</code>... I mean, of course one could put contents of <code>ImageView</code>s and <code>TextView</code>s into the <code>WebView</code>, but what about <code>Button</code>s or any other UI elements needing interaction? <strong>Is there a way in general which could solve issues like this without giving up the layout and scrolling everything at once?</strong></p>
  
  <p>I've found out that I'm not the only one with this issue. For other examples, check those questions - without working solution yet:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/15790317/webview-and-gridview-into-scrollview-view-too-large-to-fit-into-drawing-cache">WebView and GridView into ScrollView, View too large to fit into drawing cache</a></li>
  <li><a href="https://stackoverflow.com/questions/17427673/android-view-too-large-to-fit-into-drawing-cache">Android - View too large to fit into drawing cache</a></li>
  </ul>