On Saturday, December 30, 2017 at 2:14:25 PM UTC+2, wael ali wrote:
>
> Hello,
> i am working on an application where it loads images from website 
> (representing products)
> when click on an image it should go to a new function which load details 
> of product and allow to buy
> my problem is the first page will not handle any clicks until all images 
> are loaded
>
> i am using the below code to load the images from the website 
>
>     EncodedImage placeholder = 
> EncodedImage.createFromImage(Image.createImage(300, 400, 0xffff0000), true);  
>  
>   
>     URLImage background = URLImage.createToStorage(placeholder, 
> name1+"-300_400.jpg",URL+"/images/"+name1); 
>     background.fetch();
>     Label imagelabel=new Label();
>     imagelabel.setIcon(background);
>
> how i can stop the fetch when click
>
> thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/efcbe217-1b92-42a9-a3f9-da912ff614c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to