Recent

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

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • 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: 3197
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

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 144
Re: Android and GIF animation
« Reply #2 on: November 20, 2019, 04:27:00 am »
It doesn't work on Android.
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
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: 2256
    • 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

 

TinyPortal © 2005-2018