MotionKeyTimeCycle


public class MotionKeyTimeCycle extends MotionKey


Summary

Constants

static final int

Public constructors

Public methods

void
void

Defines method to add a a view to splines derived form this key frame.

MotionKey
MotionKeyTimeCycle
void
int
getId(String name)
boolean
setValue(int type, boolean value)

Used to set boolean values

boolean
setValue(int type, float value)

Used to set float values

boolean
setValue(int type, int value)

Used to set integer values

boolean
setValue(int type, String value)

Used to set String values

Inherited Constants

From androidx.constraintlayout.core.motion.key.MotionKey
static final String
ALPHA = "alpha"
static final String
CUSTOM = "CUSTOM"
static final String
ELEVATION = "elevation"
static final String
ROTATION = "rotationZ"
static final String
ROTATION_X = "rotationX"
static final String
SCALE_X = "scaleX"
static final String
SCALE_Y = "scaleY"
static final String
TRANSITION_PATH_ROTATE = "transitionPathRotate"
static final String
TRANSLATION_X = "translationX"
static final String
TRANSLATION_Y = "translationY"
static final String
VISIBILITY = "visibility"
From androidx.constraintlayout.core.motion.utils.TypedValues
static final int
static final int
static final int
static final int
static final String
S_CUSTOM = "CUSTOM"
static final int
static final int

Inherited methods

From androidx.constraintlayout.core.motion.key.MotionKey
int

Gets the current frame position

void
setCustomAttribute(String name, int type, boolean value)
void
setCustomAttribute(String name, int type, float value)
void
setCustomAttribute(String name, int type, int value)
void
setCustomAttribute(String name, int type, String value)
void

sets the frame position

void

Key frame can specify the type of interpolation it wants on various attributes For each string it set it to -1, CurveFit.LINEAR or CurveFit.SPLINE

MotionKey
setViewId(int id)
From androidx.constraintlayout.core.motion.utils.TypedValues
abstract boolean
setValue(int id, boolean value)

Used to set boolean values

abstract boolean
setValue(int id, float value)

Used to set float values

abstract boolean
setValue(int id, int value)

Used to set integer values

abstract boolean
setValue(int id, String value)

Used to set String values

Constants

KEY_TYPE

Added in 1.1.0
public static final int KEY_TYPE = 3

Public constructors

MotionKeyTimeCycle

Added in 1.1.0
public MotionKeyTimeCycle()

Public methods

addTimeValues

Added in 1.1.0
public void addTimeValues(HashMap<StringTimeCycleSplineSet> splines)

addValues

Added in 1.1.0
public void addValues(HashMap<StringSplineSet> splines)

Defines method to add a a view to splines derived form this key frame. The values are written to the spline

Parameters
HashMap<StringSplineSet> splines

splines to write values to

clone

Added in 1.1.0
public MotionKey clone()

copy

Added in 1.1.0
public MotionKeyTimeCycle copy(MotionKey src)

getAttributeNames

Added in 1.1.0
public void getAttributeNames(HashSet<String> attributes)

getId

Added in 1.1.0
public int getId(String name)

setValue

public boolean setValue(int type, boolean value)

Used to set boolean values

Returns
boolean

true if it accepted the value

setValue

public boolean setValue(int type, float value)

Used to set float values

Returns
boolean

true if it accepted the value

setValue

public boolean setValue(int type, int value)

Used to set integer values

Returns
boolean

true if it accepted the value

setValue

public boolean setValue(int type, String value)

Used to set String values

Returns
boolean

true if it accepted the value