カスタム itemrenderer を使用して写真のリストを表示していますが、幅を制御する方法を知る必要があります。現時点ではこれを行います:
(出典: tdwright.co.uk )
あなたが同意すると確信しているように、これは目が出血するほど醜いです.
リストは次のように作成されます。
<mx:Panel width="100%" height="100%" layout="absolute" title="Photos">
<mx:List x="0" y="0" width="100%" height="100%" id="photoList" dataProvider="{photos}" itemRenderer="thumbnails" rowHeight="100"/>
</mx:Panel>
itemrenderer コンポーネントは次のようになります。
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Image source="{data.src}" id="image" scaleContent="true" toolTip="{data.caption}" height="100%" horizontalAlign="center"/>
</mx:VBox>
たくさんの場所に width="100%" を配置しようとしましたが、成功しませんでした。誰かが私がこれを制御する方法を知っていれば、私はとても感謝しています.