<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating multi-line list rows with variable row heights</title>
	<atom:link href="http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-8455</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 18 Oct 2010 18:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-8455</guid>
		<description>Actually, I believe it may be &lt;code&gt;itemIndex&lt;/code&gt; and not &lt;code&gt;rowIndex&lt;/code&gt;, my bad.
This may do what you&#039;re looking for:

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;
    
    &lt;s:List id=&quot;lst&quot;
            labelField=&quot;fontName&quot;
            itemRenderer=&quot;skins.DottedItemRen&quot;
            x=&quot;20&quot; y=&quot;20&quot;&gt;
        &lt;s:layout&gt;
            &lt;s:VerticalLayout gap=&quot;0&quot; horizontalAlign=&quot;contentJustify&quot; requestedRowCount=&quot;8&quot; /&gt;
        &lt;/s:layout&gt;
        &lt;s:dataProvider&gt;
            &lt;s:ArrayList source=&quot;{Font.enumerateFonts(true).sortOn(&#039;fontName&#039;)}&quot; /&gt;
        &lt;/s:dataProvider&gt;
    &lt;/s:List&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

And the custom Spark Item renderer, &lt;em&gt;skins/DottedItemRen.mxml&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:ItemRenderer name=&quot;DottedItemRen&quot;
        xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; 
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; 
        xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; 
        autoDrawBackground=&quot;true&quot;
        dataChange=&quot;dataChangeHandler(event);&quot;&gt;
    
    &lt;fx:Script&gt;
        &lt;![CDATA[
            import mx.events.FlexEvent;
            
            protected function dataChangeHandler(evt:FlexEvent):void {
                imageDisplay.visible = (itemIndex &gt; 0);
            }
        ]]&gt;
    &lt;/fx:Script&gt;
    
    &lt;s:BitmapImage id=&quot;imageDisplay&quot; source=&quot;@Embed(&#039;skins/dotted.jpg&#039;)&quot; left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; fillMode=&quot;repeat&quot; /&gt;
    &lt;s:Label id=&quot;labelDisplay&quot; paddingLeft=&quot;5&quot; paddingRight=&quot;5&quot; paddingTop=&quot;5&quot; paddingBottom=&quot;4&quot;/&gt;
    
&lt;/s:ItemRenderer&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Actually, I believe it may be <code>itemIndex</code> and not <code>rowIndex</code>, my bad.<br />
This may do what you&#8217;re looking for:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:List</span> id=<span style="color: #ff0000;">&quot;lst&quot;</span></span>
<span style="color: #000000;">            labelField=<span style="color: #ff0000;">&quot;fontName&quot;</span></span>
<span style="color: #000000;">            itemRenderer=<span style="color: #ff0000;">&quot;skins.DottedItemRen&quot;</span></span>
<span style="color: #000000;">            x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:layout</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VerticalLayout</span> gap=<span style="color: #ff0000;">&quot;0&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;contentJustify&quot;</span> requestedRowCount=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:layout</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;{Font.enumerateFonts(true).sortOn('fontName')}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:List</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>And the custom Spark Item renderer, <em>skins/DottedItemRen.mxml</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ItemRenderer</span> name=<span style="color: #ff0000;">&quot;DottedItemRen&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> </span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> </span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> </span>
<span style="color: #000000;">        autoDrawBackground=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">        dataChange=<span style="color: #ff0000;">&quot;dataChangeHandler(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            import mx.events.FlexEvent;</span>
&nbsp;
<span style="color: #000000;">            protected function dataChangeHandler<span style="color: #66cc66;">&#40;</span>evt:FlexEvent<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                imageDisplay.visible = <span style="color: #66cc66;">&#40;</span>itemIndex <span style="color: #7400FF;">&gt;</span></span> 0);
            }
        ]]&gt;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:BitmapImage</span> id=<span style="color: #ff0000;">&quot;imageDisplay&quot;</span> source=<span style="color: #ff0000;">&quot;@Embed('skins/dotted.jpg')&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> fillMode=<span style="color: #ff0000;">&quot;repeat&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;labelDisplay&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;5&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;4&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:ItemRenderer</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-8453</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 18 Oct 2010 15:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-8453</guid>
		<description>@Mike,

You could probably build a custom item renderer with a horizontal line at the top. You could probably use the &lt;code&gt;rowIndex&lt;/code&gt; property in the custom item renderer to prevent the top item renderer from displaying its separator.

Peter</description>
		<content:encoded><![CDATA[<p>@Mike,</p>
<p>You could probably build a custom item renderer with a horizontal line at the top. You could probably use the <code>rowIndex</code> property in the custom item renderer to prevent the top item renderer from displaying its separator.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-8452</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 18 Oct 2010 15:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-8452</guid>
		<description>Can you create gridlines in this List Control? In other words a line dividing each row?

thanks

-Mike</description>
		<content:encoded><![CDATA[<p>Can you create gridlines in this List Control? In other words a line dividing each row?</p>
<p>thanks</p>
<p>-Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-7692</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Thu, 13 May 2010 00:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-7692</guid>
		<description>You can find the solution to the above bug at the following link: http://stackoverflow.com/questions/2816542/scrolling-through-list-element-causes-text-elements-to-scroll-as-well</description>
		<content:encoded><![CDATA[<p>You can find the solution to the above bug at the following link: <a href="http://stackoverflow.com/questions/2816542/scrolling-through-list-element-causes-text-elements-to-scroll-as-well" rel="nofollow">http://stackoverflow.com/questions/2816542/scrolling-through-list-element-causes-text-elements-to-scroll-as-well</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-7688</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Wed, 12 May 2010 01:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-7688</guid>
		<description>Looks good, but I have one problem with it, when I scroll using the mouse wheel, it also scrolls the label text, so I lose lines of the content</description>
		<content:encoded><![CDATA[<p>Looks good, but I have one problem with it, when I scroll using the mouse wheel, it also scrolls the label text, so I lose lines of the content</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-6340</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 12 Nov 2009 15:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-6340</guid>
		<description>@JabbyPanda,

Multi-line still works (at least it does in 3.4), it just wraps in a different spot. How/where were you expecting it to wrap if you set the horizontal scroll policy?

Peter</description>
		<content:encoded><![CDATA[<p>@JabbyPanda,</p>
<p>Multi-line still works (at least it does in 3.4), it just wraps in a different spot. How/where were you expecting it to wrap if you set the horizontal scroll policy?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JabbyPanda</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-6335</link>
		<dc:creator>JabbyPanda</dc:creator>
		<pubDate>Thu, 12 Nov 2009 10:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-6335</guid>
		<description>If we will set on  horizontalScrollPolicy=&quot;on&quot; then multi-line will not work, I guess it is a feature.</description>
		<content:encoded><![CDATA[<p>If we will set on  horizontalScrollPolicy=&#8221;on&#8221; then multi-line will not work, I guess it is a feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-1685</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 29 Oct 2007 14:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-1685</guid>
		<description>maliboo,

I don&#039;t believe you can freeze the scroll thumb size. You can try filing an enhancement request in the public Flex bug system at http://bugs.adobe.com/flex/.

Peter</description>
		<content:encoded><![CDATA[<p>maliboo,</p>
<p>I don&#8217;t believe you can freeze the scroll thumb size. You can try filing an enhancement request in the public Flex bug system at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maliboo</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/comment-page-1/#comment-1686</link>
		<dc:creator>maliboo</dc:creator>
		<pubDate>Mon, 29 Oct 2007 09:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comment-1686</guid>
		<description>Is there any switch to freeze scroll thumb size?</description>
		<content:encoded><![CDATA[<p>Is there any switch to freeze scroll thumb size?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

