public class KeyPositions extends Keys


Provides the API for creating a KeyPosition Object for use in the Core ConstraintLayout &MotionLayout system This allows multiple KeyPosition positions to defined in one object.

Summary

Nested types

public enum KeyPositions.Type

Public constructors

KeyPositions(int numOfFrames, String[] targets)

Public methods

int[]
float[]
float[]
float[]
float[]
KeyPositions.Type
String[]
String
void
setFrames(int[] frames)
void
setPercentHeight(float[] percentHeight)
void
setPercentWidth(float[] percentWidth)
void
setPercentX(float[] percentX)
void
setPercentY(float[] percentY)
void
void
setTransitionEasing(String transitionEasing)
String

Inherited methods

From androidx.constraintlayout.core.dsl.Keys
void
append(StringBuilder builder, String name, String[] array)
void
append(StringBuilder builder, String name, float[] array)
void
append(StringBuilder builder, String name, float value)
void
append(StringBuilder builder, String name, int value)
void
append(StringBuilder builder, String name, String value)
String
unpack(String[] str)

Public constructors

KeyPositions

public KeyPositions(int numOfFrames, String[] targets)

Public methods

getFrames

Added in 1.1.0
public int[] getFrames()

getPercentHeight

Added in 1.1.0
public float[] getPercentHeight()

getPercentWidth

Added in 1.1.0
public float[] getPercentWidth()

getPercentX

Added in 1.1.0
public float[] getPercentX()

getPercentY

Added in 1.1.0
public float[] getPercentY()

getPositionType

Added in 1.1.0
public KeyPositions.Type getPositionType()

getTarget

Added in 1.1.0
public String[] getTarget()

getTransitionEasing

Added in 1.1.0
public String getTransitionEasing()

setFrames

public void setFrames(int[] frames)

setPercentHeight

public void setPercentHeight(float[] percentHeight)

setPercentWidth

public void setPercentWidth(float[] percentWidth)

setPercentX

public void setPercentX(float[] percentX)

setPercentY

public void setPercentY(float[] percentY)

setPositionType

Added in 1.1.0
public void setPositionType(KeyPositions.Type positionType)

setTransitionEasing

Added in 1.1.0
public void setTransitionEasing(String transitionEasing)

toString

public String toString()