Android animating image pieces and device compatibility
<p>I am creating an application which on one view has an image of an elephant. this elephant needs to animate various parts of his body such as eyes, trunk, spraying water, and also the background/horizon movements.  I have briefly tried positioning each element(eye, trunk, etc) in a <code>RelativeLayout</code> using margins and relative positions so that the picture looks correct.</p>

<p>When i change the screen size via eclipse layout editor everything gets out of place.  I read that using <code>RelativeLayout</code> with margins and relative positions will be the best alternative to <code>AbsoluteLayout</code>, but i can't seem to get each piece in the right spot while keeping some compatibility of devices.</p>

<p><strong>What is the best way of positioning pieces of the image to complete a full image which will also allow me to animate/translate/rotate/etc each piece and support a large variety of devices?</strong></p>

<p>I thought that maybe using OpenGL or Canvas might be the way this is done properly, but i don't see how these would resolve the problems i've mentioned.</p>

<p>I have created the iOS version of this application and it was extremely easy to set this up.  I don't quite understand how applications line up sprites to make a scene which is compatible among a large variety of screen sizes/densities.</p>
