How to draw nested hallow rectangles and images in android?
<p>I'm trying to draw a hollow rectangle with moving bitmaps that has another hollow rectangle with moving rectangles in the middle of it, basically something like this.</p>

<p>|------------------|<br>
| * * * * * * * * * *|<br>
| * * * * * * * * * *|<br>
| * * |--------| * * |<br>
| * * | * * * * | * * |<br>
| * * | * |-| * | * * |<br>
| * * | * * * * | * * |<br>
| * * |--------| * * |<br>
| * * * * * * * * * *|<br>
| * * * * * * * * * *|<br>
|------------------|<br></p>

<p>Where the straight lines are the boundaries of one rectangle and the asterisks are the inside of that rectangle, composed of some empty space(one big rectangle just for color) and other moving bitmaps/rectangles.</p>

<p>I want to nest these by drawing the innermost canvas with all it's moving parts, and then shrink that and put it in the middle of the second innermost canvas with all those moving parts and shrinking that etc, indefinitely.</p>

<p>I was thinking of making each as a canvas, drawing the first one, shrinking, shifting, and drawing the second one with respect to (0,0), shrinking, shifting, and drawing the third one with respect the top left corner of the second one etc.</p>

<p>Basically I want to know if this will work, and if it's the most efficient, I don't know why but I have a nagging feeling this isn't quite a good approach. Like, will there be a significant time delay between the first and last canvas, or is there a way draw each rectangle in reverse order, on the bigger previous rectangle, and end up with a single canvas to draw?</p>

<p>Thanks.</p>
