Skip to content

Instantly share code, notes, and snippets.


Tushar Nallan tushar-nallan

View GitHub Profile
tushar-nallan /
Last active May 14, 2019
Implement a checkbox using lottie animations
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.