Using Image renderer for List : List Renderer « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » List RendererScreenshots 
Using Image renderer for List
Using Image renderer for List
           

<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->



    <!-- optimize/ListItems.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Script> 
        import mx.collections.ArrayCollection; 
        private static var birdList:Array = ["a.gif","a.gif","a.gif"]
        [Bindable
        private var birdListAC:ArrayCollection = new ArrayCollection(birdList)
        private function initCatalog():void 
            birdlist.dataProvider = birdListAC; 
        
      </fx:Script>
    <s:Panel title="List">
        <mx:List id="birdlist" rowHeight="150" width="250" rowCount="1"
            itemRenderer="mx.controls.Image" creationComplete="initCatalog()">
        </mx:List>
    </s:Panel>
</s:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.DropIn RendererDropIn Renderer
2.Inline RendererInline Renderer
3.Inline Renderer with Complex ObjectsInline Renderer with Complex Objects
4.List control uses default item renderer to display stringsList control uses default item renderer to display strings
5.Renderer and Editor for ListRenderer and Editor for List
6.List control uses the default item renderer to display each of the three strings that represent postal codes for Alaska, Alabama, and Arkansas.List control uses the default item renderer to display each of the three strings that represent postal codes for Alaska, Alabama, and Arkansas.
7.Specifying an icon to the List controlSpecifying an icon to the List control
8.Editable ListEditable List
9.Create an Editable ListCreate an Editable List
w__w___w_.___ja___va_2_s___.co___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.