public class KeyAttribute extends Keys

Known direct subclasses

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

Summary

Nested types

public enum KeyAttribute.Fit

Protected fields

String

Public constructors

KeyAttribute(int frame, String target)

Public methods

float
KeyAttribute.Fit
float
float
float
float
float
float
float
String
String
float
float
float
float
KeyAttribute.Visibility
void
setAlpha(float alpha)
void
void
setPivotX(float pivotX)
void
setPivotY(float pivotY)
void
setRotation(float rotation)
void
setRotationX(float rotationX)
void
setRotationY(float rotationY)
void
setScaleX(float scaleX)
void
setScaleY(float scaleY)
void
setTarget(String target)
void
setTransitionEasing(String transitionEasing)
void
setTransitionPathRotate(float transitionPathRotate)
void
setTranslationX(float translationX)
void
setTranslationY(float translationY)
void
setTranslationZ(float translationZ)
void
String

Protected methods

void

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)

Protected fields

TYPE

Added in 1.1.0
protected String TYPE

Public constructors

KeyAttribute

Added in 1.1.0
public KeyAttribute(int frame, String target)

Public methods

getAlpha

Added in 1.1.0
public float getAlpha()

getCurveFit

Added in 1.1.0
public KeyAttribute.Fit getCurveFit()

getPivotX

Added in 1.1.0
public float getPivotX()

getPivotY

Added in 1.1.0
public float getPivotY()

getRotation

Added in 1.1.0
public float getRotation()

getRotationX

Added in 1.1.0
public float getRotationX()

getRotationY

Added in 1.1.0
public float getRotationY()

getScaleX

Added in 1.1.0
public float getScaleX()

getScaleY

Added in 1.1.0
public float getScaleY()

getTarget

Added in 1.1.0
public String getTarget()

getTransitionEasing

Added in 1.1.0
public String getTransitionEasing()

getTransitionPathRotate

Added in 1.1.0
public float getTransitionPathRotate()

getTranslationX

Added in 1.1.0
public float getTranslationX()

getTranslationY

Added in 1.1.0
public float getTranslationY()

getTranslationZ

Added in 1.1.0
public float getTranslationZ()

getVisibility

Added in 1.1.0
public KeyAttribute.Visibility getVisibility()

setAlpha

Added in 1.1.0
public void setAlpha(float alpha)

setCurveFit

Added in 1.1.0
public void setCurveFit(KeyAttribute.Fit curveFit)

setPivotX

Added in 1.1.0
public void setPivotX(float pivotX)

setPivotY

Added in 1.1.0
public void setPivotY(float pivotY)

setRotation

Added in 1.1.0
public void setRotation(float rotation)

setRotationX

Added in 1.1.0
public void setRotationX(float rotationX)

setRotationY

Added in 1.1.0
public void setRotationY(float rotationY)

setScaleX

Added in 1.1.0
public void setScaleX(float scaleX)

setScaleY

Added in 1.1.0
public void setScaleY(float scaleY)

setTarget

Added in 1.1.0
public void setTarget(String target)

setTransitionEasing

Added in 1.1.0
public void setTransitionEasing(String transitionEasing)

setTransitionPathRotate

Added in 1.1.0
public void setTransitionPathRotate(float transitionPathRotate)

setTranslationX

Added in 1.1.0
public void setTranslationX(float translationX)

setTranslationY

Added in 1.1.0
public void setTranslationY(float translationY)

setTranslationZ

Added in 1.1.0
public void setTranslationZ(float translationZ)

setVisibility

Added in 1.1.0
public void setVisibility(KeyAttribute.Visibility visibility)

toString

public String toString()

Protected methods

attributesToString

Added in 1.1.0
protected void attributesToString(StringBuilder builder)