RLottie-Android
Lottie animation player for Android
Screenshot
Download
Add to project's build.gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Add to module-level build.gradle
dependencies {
implementation 'com.github.RohitVermaOP:RLottie-Android:<latest-version>'
}
Usage
Add to application or activity
RLottie.init(this);
Add to activity layout
<com.rohitop.rlottie.RLottieImageView
android:id="@+id/lottieImageView"
android:layout_width="90dp"
android:layout_height="90dp"/>
Add to activity class
RLottieImageView lottieImageView = findViewById(R.id.lottieImageView);
lottieImageView.post(new Runnable() {
@Override
public void run() {
lottieImageView.setAutoRepeat(true);
lottieImageView.setAnimation(R.raw.loader_desygner, 90, 90);
// lottieImageView.setLayerColor("Shape Layer 1.**", Color.parseColor("#FF7043"));
lottieImageView.playAnimation();
}
});
Developer
Developed by Rohit Verma
Special Thanks
- Telegram
- rlottie
- loader_desygner and top_badge animation from LottieFiles