If you’re positioning elements based purely on explicit x and y coordinates (no padding, margins, etc), here’s the leanest version I could come up with.

I’m aware that positioning UI elements generally this way is discouraged, but there are common cases where it’s totally appropriate – tiled layers, hotspots on images, callouts, etc.

Usage is simple – create a FixedLayout and give all children a FixedLayout.LayoutParams layout object with an x and y value.

This same concept can be accomplished with a FrameLayout and top/left margins, but this cuts away large amounts of cruft.