add layout demo xml

This commit is contained in:
jim 2018-03-12 07:12:18 +08:00
parent 3fc997b65f
commit df59a079ba
2 changed files with 39 additions and 3 deletions

View File

@ -1,4 +1,9 @@
<window name="main" x="0" y="0" w="320" h="480">
<button x="0" y="5" w="50%" h="30" text="50%"/>
<button x="0" y="40" w="100%" h="30" text="100%"/>
<button x="center" y="middle" w="30%" h="30" text="ok"/>
<button x="20" y="bottom:30" w="30%" h="30" text="ok"/>
<button x="right:20" y="bottom:30" w="30%" h="30" text="cancel"/>
</window>

View File

@ -1,4 +1,35 @@
<window name="main" x="0" y="0" w="320" h="480" layout="1 0">
<button x="0" y="5" w="50%" h="30" text="20%"/>
<button x="0" y="40" w="100%" h="30" text="30%"/>
<window name="main" x="0" y="0" w="320" h="480">
<group_box x="0" y="10" w="100%" h="30" layout="1 0">
<button x="0" y="0" w="60" h="0" text="60"/>
<button x="0" y="0" w="100" h="0" text="100"/>
</group_box>
<group_box x="0" y="50" w="100%" h="40" layout="1 0 5 10">
<button x="0" y="0" w="60" h="0" text="60"/>
<button x="0" y="0" w="100" h="0" text="100"/>
</group_box>
<group_box x="0" y="90" w="100%" h="40" layout="1 2 5 10">
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
</group_box>
<group_box x="0" y="140" w="100%" h="90" layout="2 2 10 5">
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
</group_box>
<group_box x="0" y="240" w="50%" h="180" layout="4 1 5 10">
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
<button x="0" y="0" w="0" h="0" text="button"/>
</group_box>
<group_box x="55%" y="240" w="40%" h="180" layout="0 1 5 10">
<button x="0" y="0" w="0" h="20" text="button"/>
<button x="0" y="0" w="0" h="30" text="button"/>
<button x="0" y="0" w="0" h="40" text="button"/>
<button x="0" y="0" w="0" h="50" text="button"/>
</group_box>
</window>