Remove Spark List selection background [Flex 4]

Using a custom Item Renderer for the Spark List you will still see the default selection and hover color in background, even if your component doesn’t have a background (I noticed that using a rounded rect)! Well, to avoid that just set the autoDrawBackground property to flase in your Item Renderer as shown:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
				xmlns:s="library://ns.adobe.com/flex/spark" 
				xmlns:mx="library://ns.adobe.com/flex/halo"
				height="100%" width="100%" 
                                autoDrawBackground="false">

3 Responses to Remove Spark List selection background [Flex 4]

  1. Gin0 says:

    YOU SAVED MY DAY!

    YO!

  2. teocomi says:

    Happy to know that!

  3. fmaxx says:

    Thanx! And my day was saved )))

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Home
Twitter Facebook Flickr Vimeo About me Email me