Recent

Author Topic: Android and GIF animation  (Read 337 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2002
    • Lazarus and Free Pascal italian community
Android and GIF animation
« on: November 19, 2019, 04:58:33 pm »
Hi guys, I have a question. I have to do a very long data upload (like 2/3 seconds) in which my app remains blocked. I would like to view a gif before uploading and then hide it when it loads. I tried to do it with what I've learned about images these days but the gif doesn't move. Do I have to use a particular object to do it?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

winni

  • Hero Member
  • *****
  • Posts: 609
Re: Android and GIF animation
« Reply #1 on: November 19, 2019, 05:20:13 pm »
Hi!

Install BGRAcontrols via Online Package Manager.
The BGRASpriteAnimation shows Animated Gifs.

I don't know if it works with Android.

Winni

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
Re: Android and GIF animation
« Reply #2 on: November 20, 2019, 04:27:00 am »
It doesn't work on Android.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1480
Re: Android and GIF animation
« Reply #3 on: November 21, 2019, 04:14:27 am »
Hi, xinyiman!

You can try the new LAMW jGif component

and the demo "AppGifAnimationDemo1"

Thank you!
« Last Edit: November 21, 2019, 05:05:35 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

xinyiman

  • Hero Member
  • *****
  • Posts: 2002
    • Lazarus and Free Pascal italian community
Re: Android and GIF animation
« Reply #4 on: November 21, 2019, 08:29:01 am »
Thank you very much.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1