itemrenderers

How do you delete itemrenderers in a spark Listform for mobile?

牧云@^-^@ 提交于 2019-12-12 04:43:24
问题 I've got a spark ListForm with a custom mxml itemRenderer, all the itemRenderer has is: <s:Label text="{data.name}" /> When I run the profiler, the listform is not re-using the itemRenderers, the instances keep going up and up, I'm using an arrayCollection as the dataprovider. I even call the dataprovider (arrayCollection) .removeAll() and the display goes blank, yet the number of instances of the itemRenderer does not go down. I then run the garbage collector in the profiler, and the item

Multilined itemRenderer for a spark.components.List - with test case and screenshot

点点圈 提交于 2019-12-09 03:21:28
问题 In the simple Flex 4 web application below - is it possible to change the custom item renderer MyRenderer , so that it wraps the too long lines? TestApp.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import mx.collections.ArrayList; private static const MONTHS:ArrayList = new ArrayList([ "1 January is a beautyful month", "2 February

Multilined itemRenderer for a spark.components.List - with test case and screenshot

假如想象 提交于 2019-12-01 11:36:08
In the simple Flex 4 web application below - is it possible to change the custom item renderer MyRenderer , so that it wraps the too long lines? TestApp.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import mx.collections.ArrayList; private static const MONTHS:ArrayList = new ArrayList([ "1 January is a beautyful month", "2 February is a beautyful month", "3 March is a beautyful month", "4 April is a beautyful month", "5 May is a