KeyTimeCycle
public class KeyTimeCycle extends Key
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.motion.widget.Key | |
| ↳ | androidx.constraintlayout.motion.widget.KeyTimeCycle |
Defines container for a key frame of for storing KeyTimeCycles. KeyTimeCycles change post layout values of a view.
Summary
Constants |
|
|---|---|
static final int |
KEY_TYPE = 3 |
static final int |
SHAPE_BOUNCE = 6 |
static final int |
SHAPE_COS_WAVE = 5 |
static final int |
|
static final int |
SHAPE_SAW_WAVE = 3 |
static final int |
SHAPE_SIN_WAVE = 0 |
static final int |
|
static final int |
|
static final String |
WAVE_OFFSET = "waveOffset" |
static final String |
WAVE_PERIOD = "wavePeriod" |
static final String |
WAVE_SHAPE = "waveShape" |
Public constructors |
|---|
Public methods |
|
|---|---|
void |
addTimeValues(HashMap<String, ViewTimeCycle> splines)Add values to TimeCycle Map |
void |
addValues(HashMap<String, ViewSpline> splines)Defines method to add a a view to splines derived form this key frame. |
Key |
clone()Clone this KeyAttributes |
Key |
Copy the key |
void |
getAttributeNames(HashSet<String> attributes)Gets the curve fit type this drives the interpolation |
void |
load(Context context, AttributeSet attrs) |
void |
setInterpolation(HashMap<String, Integer> interpolation)put key and position into the interpolation map |
void |
Set the value associated with this tag |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited methods |
||||||
|---|---|---|---|---|---|---|
|
Constants
Public constructors
Public methods
addTimeValues
public void addTimeValues(HashMap<String, ViewTimeCycle> splines)
Add values to TimeCycle Map
| Parameters | |
|---|---|
HashMap<String, ViewTimeCycle> splines |
addValues
public void addValues(HashMap<String, ViewSpline> splines)
Defines method to add a a view to splines derived form this key frame. The values are written to the spline
| Parameters | |
|---|---|
HashMap<String, ViewSpline> splines |
splines to write values to |
getAttributeNames
public void getAttributeNames(HashSet<String> attributes)
Gets the curve fit type this drives the interpolation
setInterpolation
public void setInterpolation(HashMap<String, Integer> interpolation)
put key and position into the interpolation map