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