Slide 54
Slide 54 text
CompositionLayer
↓
Layer
↓
ContentModel
↓
ShapeFill
↓
AnimatableValue
Content
↓
FillContent
↓
KeyframeAnimation
.PEFMΫϥε "OJNBUJPOΫϥε
@RestrictTo(LIBRARY)
public interface KeyPathElement {
void resolveKeyPath(KeyPath keyPath, int depth,
List accumulator, KeyPath currentPartialKeyPath);
void addValueCallback(T property,
@Nullable LottieValueCallback callback);
}
public class LottieAnimationView extends AppCompatImageView {
public void addValueCallback(
KeyPath keyPath, T property, LottieValueCallback callback) {
lottieDrawable.addValueCallback(keyPath, property, callback);
}
}