Flex中如何创建一个具有良好排序效果的TileList

main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
  3. layout="vertical"
  4. verticalAlign="middle"
  5. backgroundColor="white">
  6. <mx:DefaultTileListEffectid="myTileListEffect"
  7. fadeOutDuration="500"
  8. fadeInDuration="500"
  9. moveDuration="1500"/>
  10. <mx:ArrayCollectionid="arrColl">
  11. <mx:source>
  12. <mx:Array>
  13. <mx:Objectsource="assets/Accordion.png"
  14. label="Accordion"/>
  15. <mx:Objectsource="assets/ApplicationControlBar.png"
  16. label="ApplicationControlBar"/>
  17. <mx:Objectsource="assets/Box.png"
  18. label="Box"/>
  19. <mx:Objectsource="assets/Button.png"
  20. label="Button"/>
  21. <mx:Objectsource="assets/ButtonBar.png"
  22. label="ButtonBar"/>
  23. <mx:Objectsource="assets/CheckBox.png"
  24. label="CheckBox"/>
  25. <mx:Objectsource="assets/ColorPicker.png"
  26. label="ColorPicker"/>
  27. <mx:Objectsource="assets/ComboBox.png"
  28. label="ComboBox"/>
  29. <mx:Objectsource="assets/DataGrid.png"
  30. label="DataGrid"/>
  31. <mx:Objectsource="assets/DateChooser.png"
  32. label="DateChooser"/>
  33. <mx:Objectsource="assets/DateField.png"
  34. label="DateField"/>
  35. <mx:Objectsource="assets/HorizontalList.png"
  36. label="HorizontalList"/>
  37. <mx:Objectsource="assets/HRule.png"
  38. label="HRule"/>
  39. </mx:Array>
  40. </mx:source>
  41. </mx:ArrayCollection>
  42. <mx:TileListid="tileList"
  43. dataChangeEffect="{myTileListEffect}"
  44. dataProvider="{arrColl}"
  45. itemRenderer="TileListItemRenderer"
  46. dragEnabled="true"
  47. dropEnabled="true"
  48. dragMoveEnabled="true"
  49. columnWidth="100"
  50. rowHeight="100"
  51. width="100%"
  52. height="100%"/>
  53. </mx:Application>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值