You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by skvsarathyourfriend <sk...@gmail.com> on 2014/07/15 07:28:19 UTC

Background image for itemrenderer

I created itemrenderer for list. I need to apply background image for that
item renderer. i have tried this in set data method..

*this.setStyle("backgroundImage","assets\lord krishna.jpg");*

But it results nothing. can u please help me..
thank you



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Background-image-for-itemrenderer-tp7266.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Background image for itemrenderer

Posted by Greg Huddleston <gh...@reachips.com>.
Hi.  FYI.  Seems like information presented in this blog pposting could be of help...

@ http://www.raymondcamden.com/2011/8/24/Using-a-background-with-a-Flex-Mobile-project

Cheers //GregH

-----Original Message-----
From: Evyatar Ben Halevi-Arbib [mailto:evyatarbh@gmail.com] 
Sent: Monday, July 14, 2014 10:41 PM
To: users@flex apache. org
Subject: Re: Background image for itemrenderer

Include an Image or even a BitmapImage with height and width set to 100% as the first element of your renderer, then set its source in the set data function.

Good luck,
Evyatar
On 15 Jul 2014 08:28, "skvsarathyourfriend" <sk...@gmail.com>
wrote:

> I created itemrenderer for list. I need to apply background image for 
> that item renderer. i have tried this in set data method..
>
> *this.setStyle("backgroundImage","assets\lord krishna.jpg");*
>
> But it results nothing. can u please help me..
> thank you
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Background-image-for-it
> emrenderer-tp7266.html Sent from the Apache Flex Users mailing list 
> archive at Nabble.com.
>

Re: Background image for itemrenderer

Posted by Evyatar Ben Halevi-Arbib <ev...@gmail.com>.
Include an Image or even a BitmapImage with height and width set to 100% as
the first element of your renderer, then set its source in the set data
function.

Good luck,
Evyatar
On 15 Jul 2014 08:28, "skvsarathyourfriend" <sk...@gmail.com>
wrote:

> I created itemrenderer for list. I need to apply background image for that
> item renderer. i have tried this in set data method..
>
> *this.setStyle("backgroundImage","assets\lord krishna.jpg");*
>
> But it results nothing. can u please help me..
> thank you
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Background-image-for-itemrenderer-tp7266.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>