横に自動配置

一つの階層内での自動レイアウト配置です。等間隔になります。

<simplelayout>

<simplelayout/>を使うと、同一階層のオブジェクトを自動レイアウトします。axis=“x”属性をつけると横方向になります。

この内容を表示するためには Adobe Flash Plugin が必要です。

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee"> 
    <simplelayout axis="x" spacing="10"/>
    <view width="30" height="50" bgcolor="0xff0000"/>
    <view width="30" height="50" bgcolor="0x00ff00"/>
    <view width="30" height="50" bgcolor="0x0000ff"/>
</canvas>

<hbox>

<hbox>は、<view>に<simplelayout axis=“x” />の機能を加えたものです。

この内容を表示するためには Adobe Flash Plugin が必要です。

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee"> 
  <hbox spacing="10">
    <view width="30" height="50" bgcolor="0xff0000"/>
    <view width="30" height="50" bgcolor="0x00ff00"/>
    <view width="30" height="50" bgcolor="0x0000ff"/>
  </hbox>
</canvas>
横に自動配置.txt · 最終更新: 2009/10/18 03:36 (外部編集)
Copyright © 2008~ずっと ason(minamotonoason@gmail.com,waldiz membo-db)