public class KeyPosition extends Keys


Provides the API for creating a KeyPosition Object for use in the Core ConstraintLayout &MotionLayout system

Summary

Nested types

public enum KeyPosition.Type

Public constructors

KeyPosition(String firstTarget, int frame)

Public methods

int
float
float
float
float
KeyPosition.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
setTarget(String target)
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

KeyPosition

Added in 1.1.0
public KeyPosition(String firstTarget, int frame)

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 KeyPosition.Type getPositionType()

getTarget

Added in 1.1.0
public String getTarget()

getTransitionEasing

Added in 1.1.0
public String getTransitionEasing()

setFrames

Added in 1.1.0
public void setFrames(int frames)

setPercentHeight

Added in 1.1.0
public void setPercentHeight(float percentHeight)

setPercentWidth

Added in 1.1.0
public void setPercentWidth(float percentWidth)

setPercentX

Added in 1.1.0
public void setPercentX(float percentX)

setPercentY

Added in 1.1.0
public void setPercentY(float percentY)

setPositionType

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

setTarget

Added in 1.1.0
public void setTarget(String target)

setTransitionEasing

Added in 1.1.0
public void setTransitionEasing(String transitionEasing)

toString

public String toString()