public class CompositionLayer extends BaseLayer
| Constructor and Description |
|---|
CompositionLayer(LottieDrawable lottieDrawable,
Layer layerModel,
java.util.List<Layer> layerModels,
LottieComposition composition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
Add a color filter to specific content on a specific layer.
|
void |
getBounds(android.graphics.RectF outBounds,
android.graphics.Matrix parentMatrix) |
boolean |
hasMasks() |
boolean |
hasMatte() |
void |
setProgress(float progress) |
addAnimation, draw, getName, onValueChanged, setContentspublic CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, java.util.List<Layer> layerModels, LottieComposition composition)
public void getBounds(android.graphics.RectF outBounds,
android.graphics.Matrix parentMatrix)
getBounds in interface DrawingContentgetBounds in class BaseLayerpublic void setProgress(float progress)
public boolean hasMasks()
public boolean hasMatte()
public void addColorFilter(java.lang.String layerName,
java.lang.String contentName,
android.graphics.ColorFilter colorFilter)
DrawingContentaddColorFilter in interface DrawingContentaddColorFilter in class BaseLayerlayerName - name of the layer where the supplied content name lives, null if color
filter is to be applied to all layerscontentName - name of the specific content that the color filter is to be applied, null
is color filter is to be applied to all content that matches the layer paramcolorFilter - the color filter, null to clear the color filter