Skip to content

Instantly share code, notes, and snippets.

Avatar

Tushar Nallan tushar-nallan

View GitHub Profile
@tushar-nallan
tushar-nallan / LottieCheckBox.java
Last active May 14, 2019
Implement a checkbox using lottie animations
View LottieCheckBox.java
import android.animation.Animator;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.Checkable;
import com.airbnb.lottie.LottieAnimationView;
public class LottieCheckBox extends LottieAnimationView implements Checkable, Animator.AnimatorListener {
private boolean checked;
private boolean isFirstLoad = true;
private OnCheckedChangeListener listener;
You can’t perform that action at this time.