saynomoo/mig4android — Issue #7: px values are not treated as physical pixels
Author: mikaelgrev
Created: 2012-01-22 22:01:25+00:00
State: open

Default unit in MigLayout is logical pixels. Those would map nicely to the dips in Android. But 100px should always be 100 physical pixels. That unit should maybe seldom be used but somethings it is needed.

If I change your AbsoluteLayout test to this

addLabel(this, "Gap above text: container.ypos", "pos 0 0 300px 475px");

that text view is covering almost the whole of my 480x800 pixel screen, so px does not relate to physical pixels here.
px is not logical pixels either since that is is even less, some 300 to fill the whole 800 pixel screen.