Android - scaling a viewgroup (layout) at runtime
<p>I've got a bunch of tiles that make up a single image, that are rendered on request (by what's portion of the total image is visible on screen).  The composite image is significantly larger than the screen.  Each tile is positioned tightly next to its neighbors to create the illusion of a single image (the single image, if not tiled, would be too large and have OOM errors).</p>

<p>These are ImageViews inside a FrameLayout, positioned with top/leftMargin.</p>

<p>Targetting API 2.2 / SDK 8</p>

<p>I'm trying to scale the total image in response to user events (button presses, pinch, etc).</p>

<p>Apparently setScale isn't available until API 11.  I tried using canvas.scale in onDraw of the FrameLayout with setWillNotDraw(false), and onDraw is being called, but no scaling is being applied (I assume because the layout itself doesn't have any graphic information?  I had assumed it'd render it's children as well, but I guess not unless I'm doing something wrong here also).</p>

<p>I guess I could iterate through each tile and scale it independently, but would need to reposition each one as well, each time.</p>

<p>I have to think there's a way to scale a parent View (ViewGroup?) so that all of its children are also scaled (like every other language responsible for managing a GUI).  What am I missing?</p>

<p>Thanks</p>
