Package com.airbnb.lottie
Interface LottieProperty
-
public interface LottiePropertyProperty values are the same type as the generic type of their correspondingLottieValueCallback. With this, we can use generics to maintain type safety of the callbacks.Supported properties: Transform:
TRANSFORM_ANCHOR_POINTTRANSFORM_POSITIONTRANSFORM_OPACITYTRANSFORM_SCALETRANSFORM_ROTATIONTRANSFORM_SKEWTRANSFORM_SKEW_ANGLEFill:
COLOR(non-gradient)OPACITYCOLOR_FILTERStroke:
COLOR(non-gradient)STROKE_WIDTHOPACITYCOLOR_FILTEREllipse:
POSITIONELLIPSE_SIZEPolystar:
POLYSTAR_POINTSPOLYSTAR_ROTATIONPOSITIONPOLYSTAR_INNER_RADIUS(star)POLYSTAR_OUTER_RADIUSPOLYSTAR_INNER_ROUNDEDNESS(star)POLYSTAR_OUTER_ROUNDEDNESSRepeater: All transform properties
REPEATER_COPIESREPEATER_OFFSETTRANSFORM_ROTATIONTRANSFORM_START_OPACITYTRANSFORM_END_OPACITYLayers: All transform properties
TIME_REMAP(composition layers only)
-
-
Field Summary
Fields Modifier and Type Field Description static FloatBLUR_RADIUSIn Pxstatic IntegerCOLORColorIntstatic ColorFilterCOLOR_FILTERSet the color filter for an entire drawable content.static FloatCORNER_RADIUSIn degreesstatic IntegerDROP_SHADOW_COLORstatic FloatDROP_SHADOW_DIRECTIONDegrees from 12 o'clock.static FloatDROP_SHADOW_DISTANCEIn Px Lottie Android resolved drop shadows on drawing content such as fills and strokes.static FloatDROP_SHADOW_OPACITY[0,100] Lottie Android resolved drop shadows on drawing content such as fills and strokes.static FloatDROP_SHADOW_RADIUSIn Px Lottie Android resolved drop shadows on drawing content such as fills and strokes.static PointFELLIPSE_SIZEIn Pxstatic Integer[]GRADIENT_COLORArray of ARGB colors that map to position stops in the original gradient.static BitmapIMAGESet on image layers.static IntegerOPACITY[0,100]static FloatPOLYSTAR_INNER_RADIUSIn Pxstatic FloatPOLYSTAR_INNER_ROUNDEDNESS[0,100]static FloatPOLYSTAR_OUTER_RADIUSIn Pxstatic FloatPOLYSTAR_OUTER_ROUNDEDNESS[0,100]static FloatPOLYSTAR_POINTSstatic FloatPOLYSTAR_ROTATIONIn degreesstatic PointFPOSITIONIn Pxstatic PointFRECTANGLE_SIZEIn Pxstatic FloatREPEATER_COPIESstatic FloatREPEATER_OFFSETstatic IntegerSTROKE_COLORstatic FloatSTROKE_WIDTHIn Pxstatic CharSequenceTEXTReplace the text for a text layer.static FloatTEXT_SIZEIn Dpstatic FloatTEXT_TRACKINGstatic FloatTIME_REMAPThe time value in secondsstatic PointFTRANSFORM_ANCHOR_POINTIn Pxstatic FloatTRANSFORM_END_OPACITY[0,100]static IntegerTRANSFORM_OPACITYOpacity value are 0-100 to match after effectsstatic PointFTRANSFORM_POSITIONIn Pxstatic FloatTRANSFORM_POSITION_XWhen split dimensions is enabled.static FloatTRANSFORM_POSITION_YWhen split dimensions is enabled.static FloatTRANSFORM_ROTATIONIn degreesstatic ScaleXYTRANSFORM_SCALEstatic FloatTRANSFORM_SKEW0-85static FloatTRANSFORM_SKEW_ANGLEIn degreesstatic FloatTRANSFORM_START_OPACITY[0,100]static TypefaceTYPEFACESet on text layers.
-
-
-
Field Detail
-
COLOR
static final Integer COLOR
ColorInt
-
STROKE_COLOR
static final Integer STROKE_COLOR
-
TRANSFORM_OPACITY
static final Integer TRANSFORM_OPACITY
Opacity value are 0-100 to match after effects
-
OPACITY
static final Integer OPACITY
[0,100]
-
DROP_SHADOW_COLOR
static final Integer DROP_SHADOW_COLOR
-
TRANSFORM_ANCHOR_POINT
static final PointF TRANSFORM_ANCHOR_POINT
In Px
-
TRANSFORM_POSITION
static final PointF TRANSFORM_POSITION
In Px
-
TRANSFORM_POSITION_X
static final Float TRANSFORM_POSITION_X
When split dimensions is enabled. In Px
-
TRANSFORM_POSITION_Y
static final Float TRANSFORM_POSITION_Y
When split dimensions is enabled. In Px
-
BLUR_RADIUS
static final Float BLUR_RADIUS
In Px
-
ELLIPSE_SIZE
static final PointF ELLIPSE_SIZE
In Px
-
RECTANGLE_SIZE
static final PointF RECTANGLE_SIZE
In Px
-
CORNER_RADIUS
static final Float CORNER_RADIUS
In degrees
-
POSITION
static final PointF POSITION
In Px
-
TRANSFORM_SCALE
static final ScaleXY TRANSFORM_SCALE
-
TRANSFORM_ROTATION
static final Float TRANSFORM_ROTATION
In degrees
-
TRANSFORM_SKEW
static final Float TRANSFORM_SKEW
0-85
-
TRANSFORM_SKEW_ANGLE
static final Float TRANSFORM_SKEW_ANGLE
In degrees
-
STROKE_WIDTH
static final Float STROKE_WIDTH
In Px
-
TEXT_TRACKING
static final Float TEXT_TRACKING
-
REPEATER_COPIES
static final Float REPEATER_COPIES
-
REPEATER_OFFSET
static final Float REPEATER_OFFSET
-
POLYSTAR_POINTS
static final Float POLYSTAR_POINTS
-
POLYSTAR_ROTATION
static final Float POLYSTAR_ROTATION
In degrees
-
POLYSTAR_INNER_RADIUS
static final Float POLYSTAR_INNER_RADIUS
In Px
-
POLYSTAR_OUTER_RADIUS
static final Float POLYSTAR_OUTER_RADIUS
In Px
-
POLYSTAR_INNER_ROUNDEDNESS
static final Float POLYSTAR_INNER_ROUNDEDNESS
[0,100]
-
POLYSTAR_OUTER_ROUNDEDNESS
static final Float POLYSTAR_OUTER_ROUNDEDNESS
[0,100]
-
TRANSFORM_START_OPACITY
static final Float TRANSFORM_START_OPACITY
[0,100]
-
TRANSFORM_END_OPACITY
static final Float TRANSFORM_END_OPACITY
[0,100]
-
TIME_REMAP
static final Float TIME_REMAP
The time value in seconds
-
TEXT_SIZE
static final Float TEXT_SIZE
In Dp
-
DROP_SHADOW_OPACITY
static final Float DROP_SHADOW_OPACITY
[0,100] Lottie Android resolved drop shadows on drawing content such as fills and strokes. If a drop shadow is applied to a layer, the dynamic properties must be set on all of its child elements that draw. The easiest way to do this is to append "**" to your Keypath after the layer name.
-
DROP_SHADOW_DIRECTION
static final Float DROP_SHADOW_DIRECTION
Degrees from 12 o'clock. Lottie Android resolved drop shadows on drawing content such as fills and strokes. If a drop shadow is applied to a layer, the dynamic properties must be set on all of its child elements that draw. The easiest way to do this is to append "**" to your Keypath after the layer name.
-
DROP_SHADOW_DISTANCE
static final Float DROP_SHADOW_DISTANCE
In Px Lottie Android resolved drop shadows on drawing content such as fills and strokes. If a drop shadow is applied to a layer, the dynamic properties must be set on all of its child elements that draw. The easiest way to do this is to append "**" to your Keypath after the layer name.
-
DROP_SHADOW_RADIUS
static final Float DROP_SHADOW_RADIUS
In Px Lottie Android resolved drop shadows on drawing content such as fills and strokes. If a drop shadow is applied to a layer, the dynamic properties must be set on all of its child elements that draw. The easiest way to do this is to append "**" to your Keypath after the layer name.
-
COLOR_FILTER
static final ColorFilter COLOR_FILTER
Set the color filter for an entire drawable content. Can be applied to fills, strokes, images, and solids.
-
GRADIENT_COLOR
static final Integer[] GRADIENT_COLOR
Array of ARGB colors that map to position stops in the original gradient. For example, a gradient from red to blue could be remapped with [0xFF00FF00, 0xFFFF00FF] (green to purple).
-
TYPEFACE
static final Typeface TYPEFACE
Set on text layers.
-
IMAGE
static final Bitmap IMAGE
Set on image layers.
-
TEXT
static final CharSequence TEXT
Replace the text for a text layer.
-
-