KeyAttributes
public class KeyAttributes extends Key
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.motion.widget.Key | |
| ↳ | androidx.constraintlayout.motion.widget.KeyAttributes |
Defines container for a key frame of for storing KeyAttributes. KeyAttributes change post layout values of a view.
Summary
Constants |
|
|---|---|
static final int |
KEY_TYPE = 1 |
Public constructors |
|---|
Public methods |
|
|---|---|
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) |
void |
load(Context context, AttributeSet attrs) |
void |
setInterpolation(HashMap<String, Integer> interpolation)create the interpolations associated with this KeyAttribute |
void |
Set the value associated with this tag |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited methods |
||||||
|---|---|---|---|---|---|---|
|
Public constructors
Public methods
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 |
setInterpolation
public void setInterpolation(HashMap<String, Integer> interpolation)
create the interpolations associated with this KeyAttribute