summaryrefslogtreecommitdiffstats
path: root/examples/layouts/anchorlayout/xml/snake.xml
blob: 22b1a6d2ac0e4ffd0181720b20084cf04fdfc394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0"?>
<anchorlayout>
    <item id="item1">
        <property name="minimumSize">
            <size width="10" height="10"/>
        </property>
        <property name="preferredSize">
            <size width="50" height="50"/>
        </property>
        <property name="maximumSize">
            <size width="100" height="100"/>
        </property>
    </item>
    <item id="item2">
        <property name="minimumSize">
            <size width="10" height="10"/>
        </property>
        <property name="preferredSize">
            <size width="50" height="50"/>
        </property>
        <property name="maximumSize">
            <size width="100" height="100"/>
        </property>
    </item>
    <item id="item3">
        <property name="minimumSize">
            <size width="10" height="10"/>
        </property>
        <property name="preferredSize">
            <size width="50" height="50"/>
        </property>
        <property name="maximumSize">
            <size width="100" height="100"/>
        </property>
    </item>
    <item id="item4">
        <property name="minimumSize">
            <size width="10" height="10"/>
        </property>
        <property name="preferredSize">
            <size width="50" height="50"/>
        </property>
        <property name="maximumSize">
            <size width="100" height="100"/>
        </property>
    </item>
    <item id="item5">
        <property name="minimumSize">
            <size width="10" height="10"/>
        </property>
        <property name="preferredSize">
            <size width="50" height="50"/>
        </property>
        <property name="maximumSize">
            <size width="100" height="100"/>
        </property>
    </item>
    <!--
            -->

    <!-- Horizontal anchors -->
    <anchor first="this.Left" second="item1.Left"/>
    <anchor first="item1.Right" second="item2.Right"/>
    <anchor first="item1.Right" second="item4.Right"/>
    <anchor first="item3.Right" second="item4.Left"/>
    <anchor first="item2.Left" second="item5.Left"/>
    <anchor first="item3.Left" second="item5.Left"/>
    <anchor first="item5.Right" second="this.Right"/>

    <!-- Vertical anchors -->
    <anchor first="this.Top" second="item1.Top"/>
    <anchor first="item1.Bottom" second="item2.Top"/>
    <anchor first="item2.Bottom" second="item3.Top"/>
    <anchor first="item2.Bottom" second="item4.Top"/>
    <anchor first="item4.Bottom" second="item5.Top"/>
    <anchor first="item3.Bottom" second="item5.Top"/>
    <anchor first="item5.Bottom" second="this.Bottom"/>

</anchorlayout>