class MotionWidget : TypedValues


Summary

Constants

const Int
const Int
GONE_UNSET = -2147483648
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
UNSET = -1
const Int
const Int
const Int
const Int

Public constructors

Public functions

MotionWidget!
findViewById(mTransformPivotTarget: Int)
Float
Int
CustomVariable!
(Mutable)Set<String!>!
Int
Int
getId(name: String!)
Int
String!
MotionWidget!
Float
Float
Int
Float
Float
Float
Float
Float
Int
Float
Float
Float
Float

Sets the attributes

Int
WidgetFrame!
Int
Int
Int
Unit
layout(l: Int, t: Int, r: Int, b: Int)
Unit
setBounds(left: Int, top: Int, right: Int, bottom: Int)
Unit
setCustomAttribute(name: String!, type: Int, value: Boolean)
Unit
setCustomAttribute(name: String!, type: Int, value: Float)
Unit
setCustomAttribute(name: String!, type: Int, value: Int)
Unit
setCustomAttribute(name: String!, type: Int, value: String!)
Unit
Unit
Unit
Unit
setRotationX(rotationX: Float)
Unit
setRotationY(rotationY: Float)
Unit
setRotationZ(rotationZ: Float)
Unit
setScaleX(scaleX: Float)
Unit
setScaleY(scaleY: Float)
Unit
setTranslationX(translationX: Float)
Unit
setTranslationY(translationY: Float)
Unit
Boolean
setValue(id: Int, value: Boolean)

Used to set boolean values

Boolean
setValue(id: Int, value: Float)

Used to set float values

Boolean
setValue(id: Int, value: Int)

Used to set integer values

Boolean
setValue(id: Int, value: String!)

Used to set String values

Boolean
setValueAttributes(id: Int, value: Float)

Sets the attributes

Boolean
setValueMotion(id: Int, value: Float)
Boolean
setValueMotion(id: Int, value: Int)
Boolean
setValueMotion(id: Int, value: String!)
Unit
setVisibility(visibility: Int)
String!
Unit

This populates the motion attributes from widgetFrame to the MotionWidget

Inherited Constants

From androidx.constraintlayout.core.motion.utils.TypedValues
const Int
const Int
const Int
const Int
const String!
S_CUSTOM = "CUSTOM"
const Int
const Int

Constants

FILL_PARENT

Added in 1.1.0-alpha13
const val FILL_PARENT = -1: Int

GONE_UNSET

Added in 1.1.0-alpha13
const val GONE_UNSET = -2147483648: Int

INVISIBLE

Added in 1.1.0-alpha13
const val INVISIBLE = 0: Int

MATCH_CONSTRAINT

Added in 1.1.0-alpha13
const val MATCH_CONSTRAINT = 0: Int

MATCH_CONSTRAINT_WRAP

Added in 1.1.0-alpha13
const val MATCH_CONSTRAINT_WRAP = 1: Int

MATCH_PARENT

Added in 1.1.0-alpha13
const val MATCH_PARENT = -1: Int

PARENT_ID

Added in 1.1.0-alpha13
const val PARENT_ID = 0: Int

ROTATE_LEFT_OF_PORTRATE

Added in 1.1.0-alpha13
const val ROTATE_LEFT_OF_PORTRATE = 4: Int

ROTATE_NONE

Added in 1.1.0-alpha13
const val ROTATE_NONE = 0: Int

ROTATE_PORTRATE_OF_LEFT

Added in 1.1.0-alpha13
const val ROTATE_PORTRATE_OF_LEFT = 2: Int

ROTATE_PORTRATE_OF_RIGHT

Added in 1.1.0-alpha13
const val ROTATE_PORTRATE_OF_RIGHT = 1: Int

ROTATE_RIGHT_OF_PORTRATE

Added in 1.1.0-alpha13
const val ROTATE_RIGHT_OF_PORTRATE = 3: Int

UNSET

Added in 1.1.0-alpha13
const val UNSET = -1: Int

VISIBILITY_MODE_IGNORE

Added in 1.1.0-alpha13
const val VISIBILITY_MODE_IGNORE = 1: Int

VISIBILITY_MODE_NORMAL

Added in 1.1.0-alpha13
const val VISIBILITY_MODE_NORMAL = 0: Int

VISIBLE

Added in 1.1.0-alpha13
const val VISIBLE = 4: Int

WRAP_CONTENT

Added in 1.1.0-alpha13
const val WRAP_CONTENT = -2: Int

Public constructors

MotionWidget

Added in 1.1.0-alpha13
MotionWidget()

MotionWidget

Added in 1.1.0-alpha13
MotionWidget(f: WidgetFrame!)

Public functions

findViewById

Added in 1.1.0-alpha13
fun findViewById(mTransformPivotTarget: Int): MotionWidget!

getAlpha

Added in 1.1.0-alpha13
fun getAlpha(): Float

getBottom

Added in 1.1.0-alpha13
fun getBottom(): Int

getCustomAttribute

Added in 1.1.0-alpha13
fun getCustomAttribute(name: String!): CustomVariable!

getCustomAttributeNames

Added in 1.1.0-alpha13
fun getCustomAttributeNames(): (Mutable)Set<String!>!

getHeight

Added in 1.1.0-alpha13
fun getHeight(): Int

getId

Added in 1.1.0-alpha13
fun getId(name: String!): Int

getLeft

Added in 1.1.0-alpha13
fun getLeft(): Int

getName

Added in 1.1.0-alpha13
fun getName(): String!

getParent

Added in 1.1.0-alpha13
fun getParent(): MotionWidget!

getPivotX

Added in 1.1.0-alpha13
fun getPivotX(): Float

getPivotY

Added in 1.1.0-alpha13
fun getPivotY(): Float

getRight

Added in 1.1.0-alpha13
fun getRight(): Int

getRotationX

Added in 1.1.0-alpha13
fun getRotationX(): Float

getRotationY

Added in 1.1.0-alpha13
fun getRotationY(): Float

getRotationZ

Added in 1.1.0-alpha13
fun getRotationZ(): Float

getScaleX

Added in 1.1.0-alpha13
fun getScaleX(): Float

getScaleY

Added in 1.1.0-alpha13
fun getScaleY(): Float

getTop

Added in 1.1.0-alpha13
fun getTop(): Int

getTranslationX

Added in 1.1.0-alpha13
fun getTranslationX(): Float

getTranslationY

Added in 1.1.0-alpha13
fun getTranslationY(): Float

getTranslationZ

Added in 1.1.0-alpha13
fun getTranslationZ(): Float

getValueAttributes

Added in 1.1.0-alpha13
fun getValueAttributes(id: Int): Float

Sets the attributes

getVisibility

Added in 1.1.0-alpha13
fun getVisibility(): Int

getWidgetFrame

Added in 1.1.0-alpha13
fun getWidgetFrame(): WidgetFrame!

getWidth

Added in 1.1.0-alpha13
fun getWidth(): Int

getX

Added in 1.1.0-alpha13
fun getX(): Int

getY

Added in 1.1.0-alpha13
fun getY(): Int

layout

Added in 1.1.0-alpha13
fun layout(l: Int, t: Int, r: Int, b: Int): Unit

setBounds

Added in 1.1.0-alpha13
fun setBounds(left: Int, top: Int, right: Int, bottom: Int): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Boolean): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Float): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Int): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: String!): Unit

setInterpolatedValue

Added in 1.1.0-alpha13
fun setInterpolatedValue(attribute: CustomAttribute!, mCache: FloatArray!): Unit

setPivotX

Added in 1.1.0-alpha13
fun setPivotX(px: Float): Unit

setPivotY

Added in 1.1.0-alpha13
fun setPivotY(py: Float): Unit

setRotationX

Added in 1.1.0-alpha13
fun setRotationX(rotationX: Float): Unit

setRotationY

Added in 1.1.0-alpha13
fun setRotationY(rotationY: Float): Unit

setRotationZ

Added in 1.1.0-alpha13
fun setRotationZ(rotationZ: Float): Unit

setScaleX

Added in 1.1.0-alpha13
fun setScaleX(scaleX: Float): Unit

setScaleY

Added in 1.1.0-alpha13
fun setScaleY(scaleY: Float): Unit

setTranslationX

Added in 1.1.0-alpha13
fun setTranslationX(translationX: Float): Unit

setTranslationY

Added in 1.1.0-alpha13
fun setTranslationY(translationY: Float): Unit

setTranslationZ

Added in 1.1.0-alpha13
fun setTranslationZ(tz: Float): Unit

setValue

Added in 1.1.0-alpha13
fun setValue(id: Int, value: Boolean): Boolean

Used to set boolean values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(id: Int, value: Float): Boolean

Used to set float values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(id: Int, value: Int): Boolean

Used to set integer values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(id: Int, value: String!): Boolean

Used to set String values

Returns
Boolean

true if it accepted the value

setValueAttributes

Added in 1.1.0-alpha13
fun setValueAttributes(id: Int, value: Float): Boolean

Sets the attributes

setValueMotion

Added in 1.1.0-alpha13
fun setValueMotion(id: Int, value: Float): Boolean

setValueMotion

Added in 1.1.0-alpha13
fun setValueMotion(id: Int, value: Int): Boolean

setValueMotion

Added in 1.1.0-alpha13
fun setValueMotion(id: Int, value: String!): Boolean

setVisibility

Added in 1.1.0-alpha13
fun setVisibility(visibility: Int): Unit

toString

fun toString(): String!

updateMotion

Added in 1.1.0-alpha13
fun updateMotion(toUpdate: TypedValues!): Unit

This populates the motion attributes from widgetFrame to the MotionWidget