Hello World!
Another B4A Library ?

AXrLottie

AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rlottie)

What is Lottie?
Lottie loads and renders animations and vectors exported in the bodymovin JSON format. Bodymovin JSON can be created and exported from After Effects with bodymovin, Sketch with Lottie Sketch Export, and from Haiku.
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. Since the animation is backed by > JSON they are extremely small in size but can be large in complexity!
What is rlottie?
rlottie is a platform independent standalone c++ library for rendering vector based animations and art in realtime.
What is AXrLottie?

AXrLottie includes rlottie into the Android. Easy A!

Lottie Examples


Telegram is using rlottie for Animated stickers! so, yes, you can load telegram animated stickers with AXrLottie..

AXrLottie + AXEmojiView ?



Samples :




Lottie2Gif



you can export lottie animations as a GIF! thanks to gif-h

Output



Properties
  • FillColor
  • FillOpacity
  • StrokeColor
  • StrokeOpacity
  • StrokeWidth
  • TrAnchor
  • TrOpacity
  • TrPosition
  • TrRotation
  • TrScale

See more in GitHub
Version : 1.02 / synced with the latest version of Samsung/rlottie.

Lib+Sample attached (for FREE) :)
Download from dropbox
Size: 2MB

Power the AXTeam with your donation :
1609955852675.png

After your donation please send me an email and join to our beta tester group. ( [email protected] )
 
Last edited:

panagiotisden2

Active Member
Licensed User
Longtime User
That is awsome!
can you tell me how to play the animation only once? tried to set AutoRepeat to 0 on the builder and to set AutoRepeat to False on the view but none of these work.
 

User242424

Member
Licensed User
Hi,
That is awsome!
Thanks!
can you tell me how to play the animation only once? tried to set AutoRepeat to 0 on the builder and to set AutoRepeat to False on the view but none of these work.

Seems like there is a lil bug, view changes the drawable#autoRepeat,
try this code :
B4X:
LottieView.SetLottieDrawable(Drawable.Build)
LottieView.GetLottieDrawable.AutoRepeat = 1
 

Star-Dust

Expert
Licensed User
Longtime User
However the wrapping of this library already existed, made by @DonManfred
 

User242424

Member
Licensed User
However the wrapping of this library already existed, made by @DonManfred
Hi, as i said, this is not a wrapper of airbnb/lottie-android
This is a wrapper of AXrLottie :D

What is rlottie?
rlottie is a platform independent standalone c++ library for rendering vector based animations and art in realtime.

What is AXrLottie?
AXrLottie includes rlottie into the Android. Easy A!

Just compare them in a big project and see the performance ;)
 

ArminKh1993

Active Member
Hello World!
Another B4A Library ?

AXrLottie

AXrLottie (Android) Renders animations and vectors exported in the bodymovin JSON format. (Using rlottie)

What is Lottie?

What is rlottie?

What is AXrLottie?

AXrLottie includes rlottie into the Android. Easy A!

Lottie Examples


Telegram is using rlottie for Animated stickers! so, yes, you can load telegram animated stickers with AXrLottie..

AXrLottie + AXEmojiView ?



Samples :




Lottie2Gif



you can export lottie animations as a GIF! thanks to gif-h

Output



Properties
  • FillColor
  • FillOpacity
  • StrokeColor
  • StrokeOpacity
  • StrokeWidth
  • TrAnchor
  • TrOpacity
  • TrPosition
  • TrRotation
  • TrScale

See more in GitHub
Version : 1.02 / synced with the latest version of Samsung/rlottie.

Lib+Sample attached (for FREE) :)
Download from dropbox
Size: 2MB

Power the AXTeam with your donation :
View attachment 105596
After your donation please send me an email and join to our beta tester group. ( [email protected] )
Well done my good student?
 

Unobtainius

Active Member
Licensed User
Longtime User
spectacular! Thank you very much
 

Reminisce

Active Member
@User242424 hello thanks for this library, the sample project refused to run on my Nox emulator with a java error and on my device with no error at all. Just crashes. I'll post the java error below.
 

Reminisce

Active Member
I have to snap it because i cannot post the error log on my laptop on.. Here's the error log on my emulator.
IMG_20210705_134912_resize_10.jpg
 
Top