I want to generate a layout in a scrollview from code.
But first, to make it easier on me (or so i thought) did a static layout in the designer, and then thought i could just copy the coordinates into my code - but when i do that the generated views look a lot larger than what i expected.
The designer uses dip values implicity, so in runtime you have to add the dip word to each value to be the same as in the designer...also the coordinates shoul be relative to the parent.
Hm, don't know if there was a bug here it was me, but I had deleted a larger variant in favor of the emulator default size but apparently it was still using another resolution in the variant, hence the weirdness.
Once I closed it all and started over the values were correct.