<canvas>
<view bgcolor="#e5e5e5">
<simplelayout axis="x" spacing="20"/>
<view name="firstView" bgcolor="red" width="20" height="20"/>
<view name="secondView" width="20" height="20">
<attribute name="bgcolor" init="parent.firstView.bgcolor"/>
</view>
</view>
</canvas>