diff --git a/AXrLottie/src/main/cpp/src/vector/vrle.cpp b/AXrLottie/src/main/cpp/src/vector/vrle.cpp index 379f8ed..051560d 100644 --- a/AXrLottie/src/main/cpp/src/vector/vrle.cpp +++ b/AXrLottie/src/main/cpp/src/vector/vrle.cpp @@ -224,7 +224,7 @@ void VRle::Data::opGeneric(const VRle::Data &aObj, const VRle::Data &bObj, mSpans.reserve(a.size() + b.size()); // if two rle are disjoint - if (!aObj.bbox().intersects(aObj.bbox())) { + if (!aObj.bbox().intersects(bObj.bbox())) { if (a.data()[0].y < b.data()[0].y) { copy(a.data(), a.size(), mSpans); copy(b.data(), b.size(), mSpans); diff --git a/README.md b/README.md index 96cba2c..32915ae 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@
AXrLottie Renders animations
and vectors exported in the bodymovin JSON format
GitHubReleases

LCoders | AmirHosseinAghajari
picker + +[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html) +[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.aghajari/AXrLottie.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.github.aghajari/AXrLottie/1.2.0/aar) +[![Join the chat at https://gitter.im/Aghajari/community](https://badges.gitter.im/Aghajari/community.svg)](https://gitter.im/Aghajari/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) @@ -41,31 +46,39 @@ What is **AXrLottie**? - [Listeners](#listeners) - [NetworkFetcher](#networkfetcher) - [FileExtension](#fileextension) +- [AXrLottieGlideDecoder](#axrlottieglidedecoder) - [AnimatedSticker (AXEmojiView)](#animatedsticker---axemojiview) - [Author](#author) - [License](#license) ## Changelogs -**1.0.6 :** -- DynamicProperties added to AXrLottieProperty! +**1.2.0 :** +- Moved from JCenter to mavenCenteral +- Synced with latest version of [rlottie](https://github.com/Samsung/rlottie) - Some improvements & Bugs fixed + +**1.1.0 :** +- New Optional library! [AXrLottieGlideDecoder](https://github.com/Aghajari/AXrLottie/wiki/AXrLottieGlideDecoder) +- SetDefaultOptions added to AXrLottie +- OnError,OnLoaded added to OnLottieLoaderListener + [Other versions changelog](https://github.com/Aghajari/AXrLottie/wiki/Changelogs) ## Installation -AXrLottie is available in the JCenter, so you just need to add it as a dependency (Module gradle) +AXrLottie is available in the `mavenCenteral()`, so you just need to add it as a dependency (Module gradle) Gradle ```gradle -implementation 'com.aghajari.rlottie:AXrLottie:1.0.6' +implementation 'io.github.aghajari:AXrLottie:1.2.0' ``` Maven ```xml - com.aghajari.rlottie + io.github.aghajari AXrLottie - 1.0.6 + 1.2.0 pom ``` @@ -362,6 +375,21 @@ AXrLottie.addFileExtension(new GZipFileExtension(".tgs")); [Back to contents](#table-of-contents) +## [AXrLottieGlideDecoder](https://github.com/Aghajari/AXrLottie/wiki/AXrLottieGlideDecoder) +[AXrLottieGlideDecoder](https://github.com/Aghajari/AXrLottie/wiki/AXrLottieGlideDecoder) is a [Glide](https://github.com/bumptech/glide) integration library for displaying AXrLottieDrawable. + +Example : +```java +Glide.with(this) + .load(Uri.parse("file:///android_asset/loader.json")) + .set(AXrLottieGlideOptions.ENABLED, true) + .set(AXrLottieGlideOptions.NAME, "loader.json") + .set(AXrLottieGlideOptions.NETWORK, false) + .into(imageView); +``` + +[Back to contents](#table-of-contents) + ## AnimatedSticker - AXEmojiView you can create AXrLottieImageView in AXEmojiView/StickerView using this code :