Is there some support for a "stack panel" in layouts? (= objects are positioned one after each other) Because it seems that we always need to specify the Y position for every object... That's not very useful, if we have more items, some labels, buttons etc.
<layout id="DetailLayout">
<drawable id="grayBackground"></drawable>
<label id="title1" x="8" y="8" font="Gfx.FONT_SYSTEM_SMALL" color="Gfx.COLOR_WHITE" />
<label id="title2" x="8" y="16" font="Gfx.FONT_SYSTEM_SMALL" color="Gfx.COLOR_WHITE" />
<label id="title3" x="8"y="24" font="Gfx.FONT_SYSTEM_SMALL" color="Gfx.COLOR_WHITE" />
</layout>
Looking at the samples, it seems that we can specify a piece of code as the X/Y parameter. Is this a supported scenario? Because it seems to work, but it shows warnings when the project is compiled. What are the limitations? Can we call any code / property from the View here?
<label id="title" x="8" y="dc.getHeight()/3+40" font="Gfx.FONT_SYSTEM_SMALL" color="Gfx.COLOR_WHITE" />
A similar question. What does this exactly mean? x="center" and y="bottom" Are these properties bound to some private properties of the View object? It works, but maybe it's only a coincidence :)
<button x="center" y="bottom" width="dc.getWidth()" height="35" background="Gfx.COLOR_GREEN" behavior="onRetry">
<state id="stateDefault" color="0x78B62E"></state>
<state id="stateHighlighted" color="0xADF449"></state>
</button>