Flex Gumbo中如何利用useVirtualLayout属性创建虚拟布局List的例子

接下来的Flex Gumbo中如何通过在useVirtualLayout属性上设置layout对象,创建虚拟布局List。


下面是main.mxml:







下面是Skin类Skins/CustomListSkin.mxml的代码:








/* Define the skin elements that should not be colorized.
For list, the skin itself is colorized but the individual parts are not. */
static private const exclusions:Array = [“scroller”, “background”];

override public function get colorizeExclusions():Array {return exclusions;}

static private const contentFill:Array = [“bgFill”];
override public function get contentItems():Array {return contentFill};


















代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Leave a Reply

Your email address will not be published. Required fields are marked *