public class MotionWidget implements TypedValues


Summary

Nested types

public class MotionWidget.Motion

Constants

static final int
static final int
GONE_UNSET = -2147483648
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
UNSET = -1
static final int
static final int
static final int
static final int

Public constructors

Public methods

MotionWidget
findViewById(int mTransformPivotTarget)
float
int
CustomVariable
Set<String>
int
int
getId(String name)
int
String
MotionWidget
float
float
int
float
float
float
float
float
int
float
float
float
float

Sets the attributes

int
WidgetFrame
int
int
int
void
layout(int l, int t, int r, int b)
void
setBounds(int left, int top, int right, int bottom)
void
setCustomAttribute(String name, int type, boolean value)
void
setCustomAttribute(String name, int type, float value)
void
setCustomAttribute(String name, int type, int value)
void
setCustomAttribute(String name, int type, String value)
void
setInterpolatedValue(CustomAttribute attribute, float[] mCache)
void
setPivotX(float px)
void
setPivotY(float py)
void
setRotationX(float rotationX)
void
setRotationY(float rotationY)
void
setRotationZ(float rotationZ)
void
setScaleX(float scaleX)
void
setScaleY(float scaleY)
void
setTranslationX(float translationX)
void
setTranslationY(float translationY)
void
setTranslationZ(float tz)
boolean
setValue(int id, boolean value)

Used to set boolean values

boolean
setValue(int id, float value)

Used to set float values

boolean
setValue(int id, int value)

Used to set integer values

boolean
setValue(int id, String value)

Used to set String values

boolean
setValueAttributes(int id, float value)

Sets the attributes

boolean
setValueMotion(int id, float value)
boolean
setValueMotion(int id, int value)
boolean
setValueMotion(int id, String value)
void
setVisibility(int visibility)
String
void

This populates the motion attributes from widgetFrame to the MotionWidget

Inherited Constants

From androidx.constraintlayout.core.motion.utils.TypedValues
static final int
static final int
static final int
static final int
static final String
S_CUSTOM = "CUSTOM"
static final int
static final int

Constants

FILL_PARENT

Added in 1.1.0
public static final int FILL_PARENT = -1

GONE_UNSET

Added in 1.1.0
public static final int GONE_UNSET = -2147483648

INVISIBLE

Added in 1.1.0
public static final int INVISIBLE = 0

MATCH_CONSTRAINT

Added in 1.1.0
public static final int MATCH_CONSTRAINT = 0

MATCH_CONSTRAINT_WRAP

Added in 1.1.0
public static final int MATCH_CONSTRAINT_WRAP = 1

MATCH_PARENT

Added in 1.1.0
public static final int MATCH_PARENT = -1

PARENT_ID

Added in 1.1.0
public static final int PARENT_ID = 0

ROTATE_LEFT_OF_PORTRATE

Added in 1.1.0
public static final int ROTATE_LEFT_OF_PORTRATE = 4

ROTATE_NONE

Added in 1.1.0
public static final int ROTATE_NONE = 0

ROTATE_PORTRATE_OF_LEFT

Added in 1.1.0
public static final int ROTATE_PORTRATE_OF_LEFT = 2

ROTATE_PORTRATE_OF_RIGHT

Added in 1.1.0
public static final int ROTATE_PORTRATE_OF_RIGHT = 1

ROTATE_RIGHT_OF_PORTRATE

Added in 1.1.0
public static final int ROTATE_RIGHT_OF_PORTRATE = 3

UNSET

Added in 1.1.0
public static final int UNSET = -1

VISIBILITY_MODE_IGNORE

Added in 1.1.0
public static final int VISIBILITY_MODE_IGNORE = 1

VISIBILITY_MODE_NORMAL

Added in 1.1.0
public static final int VISIBILITY_MODE_NORMAL = 0

VISIBLE

Added in 1.1.0
public static final int VISIBLE = 4

WRAP_CONTENT

Added in 1.1.0
public static final int WRAP_CONTENT = -2

Public constructors

MotionWidget

Added in 1.1.0
public MotionWidget()

MotionWidget

Added in 1.1.0
public MotionWidget(WidgetFrame f)

Public methods

findViewById

Added in 1.1.0
public MotionWidget findViewById(int mTransformPivotTarget)

getAlpha

Added in 1.1.0
public float getAlpha()

getBottom

Added in 1.1.0
public int getBottom()

getCustomAttribute

Added in 1.1.0
public CustomVariable getCustomAttribute(String name)

getCustomAttributeNames

Added in 1.1.0
public Set<StringgetCustomAttributeNames()

getHeight

Added in 1.1.0
public int getHeight()

getId

Added in 1.1.0
public int getId(String name)

getLeft

Added in 1.1.0
public int getLeft()

getName

Added in 1.1.0
public String getName()

getParent

Added in 1.1.0
public MotionWidget getParent()

getPivotX

Added in 1.1.0
public float getPivotX()

getPivotY

Added in 1.1.0
public float getPivotY()

getRight

Added in 1.1.0
public int getRight()

getRotationX

Added in 1.1.0
public float getRotationX()

getRotationY

Added in 1.1.0
public float getRotationY()

getRotationZ

Added in 1.1.0
public float getRotationZ()

getScaleX

Added in 1.1.0
public float getScaleX()

getScaleY

Added in 1.1.0
public float getScaleY()

getTop

Added in 1.1.0
public int getTop()

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()

getValueAttributes

Added in 1.1.0
public float getValueAttributes(int id)

Sets the attributes

getVisibility

Added in 1.1.0
public int getVisibility()

getWidgetFrame

Added in 1.1.0
public WidgetFrame getWidgetFrame()

getWidth

Added in 1.1.0
public int getWidth()

getX

Added in 1.1.0
public int getX()

getY

Added in 1.1.0
public int getY()

layout

Added in 1.1.0
public void layout(int l, int t, int r, int b)

setBounds

Added in 1.1.0
public void setBounds(int left, int top, int right, int bottom)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, boolean value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, float value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, int value)

setCustomAttribute

Added in 1.1.0
public void setCustomAttribute(String name, int type, String value)

setInterpolatedValue

Added in 1.1.0
public void setInterpolatedValue(CustomAttribute attribute, float[] mCache)

setPivotX

Added in 1.1.0
public void setPivotX(float px)

setPivotY

Added in 1.1.0
public void setPivotY(float py)

setRotationX

Added in 1.1.0
public void setRotationX(float rotationX)

setRotationY

Added in 1.1.0
public void setRotationY(float rotationY)

setRotationZ

Added in 1.1.0
public void setRotationZ(float rotationZ)

setScaleX

Added in 1.1.0
public void setScaleX(float scaleX)

setScaleY

Added in 1.1.0
public void setScaleY(float scaleY)

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 tz)

setValue

Added in 1.1.0
public boolean setValue(int id, boolean value)

Used to set boolean values

Returns
boolean

true if it accepted the value

setValue

Added in 1.1.0
public boolean setValue(int id, float value)

Used to set float values

Returns
boolean

true if it accepted the value

setValue

Added in 1.1.0
public boolean setValue(int id, int value)

Used to set integer values

Returns
boolean

true if it accepted the value

setValue

Added in 1.1.0
public boolean setValue(int id, String value)

Used to set String values

Returns
boolean

true if it accepted the value

setValueAttributes

Added in 1.1.0
public boolean setValueAttributes(int id, float value)

Sets the attributes

setValueMotion

Added in 1.1.0
public boolean setValueMotion(int id, float value)

setValueMotion

Added in 1.1.0
public boolean setValueMotion(int id, int value)

setValueMotion

Added in 1.1.0
public boolean setValueMotion(int id, String value)

setVisibility

Added in 1.1.0
public void setVisibility(int visibility)

toString

public String toString()

updateMotion

Added in 1.1.0
public void updateMotion(TypedValues toUpdate)

This populates the motion attributes from widgetFrame to the MotionWidget