I used same these cn1lib and add this image in src file

[image: sp2.gif]
and set this code in main.class
  Form hi = new Form("Gif", new BorderLayout());
        try {
            hi.add(CENTER, new 
ScaleImageLabel(GifImage.decode(getResourceAsStream("/sp2.gif"), 950272)));
        } catch (IOException err) {
            log(err);
        }
        hi.show();

and after tested that on the real android device (8.0.0.158v) the black 
screen is keeping show before loading gif img like this 

[image: isuess.jpg]

i don't like to keep this black screen and i want to get any way can help 
to fix this.

some ideas (but i don't know if that possible):
1) load gif image before open app 
2) use native code 
3) get a gif image from theme file 
4) replace black screen to first frame for gif image
5) reduce size of gif image( This can help, but is not a fix to the problem)




On Saturday, June 29, 2019 at 6:49:38 AM UTC+3, Shai Almog wrote:
>
> https://www.codenameone.com/blog/animated-gif-support.html
>

-- 
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/7db9d347-80c3-485e-ad04-66c4140b9efd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to