Stay organized with collections
Save and categorize content based on your preferences.
public class KeyPosition extends Key
Provide the passive data structure to get KeyPosition information form XML
Summary
Constants |
static final String |
|
static final String |
|
static final String |
|
static final String |
|
static final String |
|
static final float |
|
static final String |
|
static final String |
|
static final int |
|
static final int |
|
static final int |
|
static final int |
|
Public methods |
void |
Defines method to add a a view to splines derived form this key frame.
|
Key |
Clone this KeyAttributes
|
Key |
Copy the key
|
boolean |
|
void |
|
void |
|
void |
|
void |
Set the value associated with this tag
|
Inherited methods |
From androidx.constraintlayout.motion.widget.Key
int |
Gets the current frame position
|
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
|
Key |
set the id of the view
|
|
Public methods
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
public Key clone()
Clone this KeyAttributes
public Key copy(Key src)
Copy the key
| Parameters |
Key src |
to be copied
|
public boolean intersects(
int layoutWidth,
int layoutHeight,
RectF start,
RectF end,
float x,
float y
)
| Parameters |
int layoutWidth |
|
int layoutHeight |
|
RectF start |
|
RectF end |
|
float x |
|
float y |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-07-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-29 UTC."],[],[]]