eui.HorizontalLayout 使用範例
exml部分
<?xml version='1.0' encoding='utf-8'?>
<e:Skin class="skins.MySkin" width="640" height="1136" xmlns:e="http://ns.egret.com/eui">
<e:Rect fillColor="0x000000" width="100%" height="100%" />
<e:Group>
<e:Rect fillColor="0xFF0000" width="50" height="50" />
<e:Rect fillColor="0x00FF00" width="50" height="50" />
<e:Rect fillColor="0x0000FF" width="50" height="50" />
<e:layout>
<!--元素間隔 10, 上下左右內距 10-->
<e:HorizontalLayout gap="10" paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10" />
</e:layout>
</e:Group>
</e:Skin>
沒有留言:
張貼留言