eui.TileOrientation 範例
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%" />
<!-- TileLayout -->
<e:Group>
<!-- TileLayout -->
<e:Group>
<e:Rect fillColor="0xFF0000" width="100" height="100" />
<e:Rect fillColor="0x00FF00" width="100" height="100" />
<e:Rect fillColor="0x0000FF" width="100" height="100" />
<e:Rect fillColor="0xFF0000" width="100" height="100" />
<e:Rect fillColor="0x00FF00" width="100" height="100" />
<e:Rect fillColor="0x0000FF" width="100" height="100" />
<e:layout>
<!-- orientation=rows 表示逐行排列元素 -->
<e:TileLayout horizontalGap="0" verticalGap="0" orientation="rows" />
</e:layout>
</e:Group>
<!-- TileLayout -->
<e:Group>
<e:Rect fillColor="0xFF0000" width="100" height="100" />
<e:Rect fillColor="0x00FF00" width="100" height="100" />
<e:Rect fillColor="0x0000FF" width="100" height="100" />
<e:Rect fillColor="0xFF0000" width="100" height="100" />
<e:Rect fillColor="0x00FF00" width="100" height="100" />
<e:Rect fillColor="0x0000FF" width="100" height="100" />
<e:layout>
<!-- orientation=columns 表示逐列排列元素 -->
<e:TileLayout horizontalGap="0" verticalGap="0" orientation="columns" />
</e:layout>
</e:Group>
<e:layout>
<e:VerticalLayout gap="10" />
</e:layout>
</e:Group>
</e:Skin>
沒有留言:
張貼留言