public class KeyAttributes extends Keys

Known direct subclasses
KeyCycles

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


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

Summary

Nested types

public enum KeyAttributes.Fit

Protected fields

String

Public methods

float[]
KeyAttributes.Fit
float[]
float[]
float[]
float[]
float[]
float[]
float[]
String[]
String
float[]
float[]
float[]
float[]
KeyAttributes.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
setVisibility(KeyAttributes.Visibility[] visibility)
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 methods

getAlpha

Added in 1.1.0
public float[] getAlpha()

getCurveFit

Added in 1.1.0
public KeyAttributes.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 KeyAttributes.Visibility[] getVisibility()

setAlpha

public void setAlpha(float[] alpha)

setCurveFit

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

setPivotX

public void setPivotX(float[] pivotX)

setPivotY

public void setPivotY(float[] pivotY)

setRotation

public void setRotation(float[] rotation)

setRotationX

public void setRotationX(float[] rotationX)

setRotationY

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

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

public void setVisibility(KeyAttributes.Visibility[] visibility)

toString

public String toString()

Protected methods

attributesToString

Added in 1.1.0
protected void attributesToString(StringBuilder builder)