I posted another handy class i used and still use to layout images (sprites or buttons) according to my artist's layout sample images. Since i only get the sample image and no coordinates to go with i have to visually align the sprites until the sprite and the background align perfectly. To do this i wrote a simple LayoutHelper class that lets you touch & drag any sprite. It also makes it transparent while dragging, blinking while not dragging and draws the current coordinates so that once i've put it in position, i can just transcribe these numbers into code. Beats having to tweak positions, restart, check, tweak again, etc. ... a vicious cycle that might take hours - now you'll have to do it only once! Plus i describe how subpixel rendering is a pain if you want pixel-perfect image placement. I wasted hours just to find this out.
I hope it'll be useful to some.