class WidgetFrame


Utility class to encapsulate layout of a widget

Summary

Public constructors

Public functions

Unit
addCustomColor(name: String!, color: Int)
Unit
addCustomFloat(name: String!, value: Float)
Float
Float
Boolean

Return whether this WidgetFrame contains a custom property of the given name.

CustomVariable!

Get the custom attribute given Nam

(Mutable)Set<String!>!

Get the known custom Attributes names

Int
Float
String!
TypedBundle!

get the property bundle associated with MotionAttributes

Int
java-static Unit
interpolate(
    parentWidth: Int,
    parentHeight: Int,
    frame: WidgetFrame!,
    start: WidgetFrame!,
    end: WidgetFrame!,
    transition: Transition!,
    progress: Float
)
Boolean
StringBuilder!
StringBuilder!
serialize(ret: StringBuilder!, sendPhoneOrientation: Boolean)

If true also send the phone orientation

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
setCustomValue(valueAt: CustomAttribute!, mTempValues: FloatArray!)
Boolean
setValue(key: String!, value: CLElement!)
WidgetFrame!
WidgetFrame!
Unit
Int

Public constructors

WidgetFrame

Added in 1.1.0
WidgetFrame()

WidgetFrame

Added in 1.1.0
WidgetFrame(frame: WidgetFrame!)

WidgetFrame

Added in 1.1.0
WidgetFrame(widget: ConstraintWidget!)

Public functions

addCustomColor

Added in 1.1.0
fun addCustomColor(name: String!, color: Int): Unit

addCustomFloat

Added in 1.1.0
fun addCustomFloat(name: String!, value: Float): Unit

centerX

Added in 1.1.0
fun centerX(): Float

centerY

Added in 1.1.0
fun centerY(): Float

containsCustom

Added in 1.1.0
fun containsCustom(name: String): Boolean

Return whether this WidgetFrame contains a custom property of the given name.

getCustomAttribute

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

Get the custom attribute given Nam

Parameters
name: String!

Name of the custom attribut

Returns
CustomVariable!

The customAttribute

getCustomAttributeNames

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

Get the known custom Attributes names

Returns
(Mutable)Set<String!>!

set of custom attribute names

getCustomColor

Added in 1.1.0
fun getCustomColor(name: String!): Int

getCustomFloat

Added in 1.1.0
fun getCustomFloat(name: String!): Float

getId

Added in 1.1.0
fun getId(): String!

getMotionProperties

Added in 1.1.0
fun getMotionProperties(): TypedBundle!

get the property bundle associated with MotionAttributes

Returns
TypedBundle!

the property bundle associated with MotionAttributes or null

height

Added in 1.1.0
fun height(): Int

interpolate

Added in 1.1.0
java-static fun interpolate(
    parentWidth: Int,
    parentHeight: Int,
    frame: WidgetFrame!,
    start: WidgetFrame!,
    end: WidgetFrame!,
    transition: Transition!,
    progress: Float
): Unit

isDefaultTransform

Added in 1.1.0
fun isDefaultTransform(): Boolean

serialize

Added in 1.1.0
fun serialize(ret: StringBuilder!): StringBuilder!

serialize

Added in 1.1.0
fun serialize(ret: StringBuilder!, sendPhoneOrientation: Boolean): StringBuilder!

If true also send the phone orientation

setCustomAttribute

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

setCustomAttribute

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

setCustomAttribute

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

setCustomAttribute

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

setCustomValue

Added in 1.1.0
fun setCustomValue(valueAt: CustomAttribute!, mTempValues: FloatArray!): Unit

update

Added in 1.1.0
fun update(): WidgetFrame!

update

Added in 1.1.0
fun update(widget: ConstraintWidget!): WidgetFrame!

updateAttributes

Added in 1.1.0
fun updateAttributes(frame: WidgetFrame!): Unit

width

Added in 1.1.0
fun width(): Int

Public properties

alpha

Added in 1.1.0
val alphaFloat

bottom

Added in 1.1.0
val bottomInt

interpolatedPos

Added in 1.1.0
val interpolatedPosFloat

left

Added in 1.1.0
val leftInt

name

Added in 1.1.0
val nameString!

phone_orientation

Added in 1.1.0
java-static val phone_orientationFloat

pivotX

Added in 1.1.0
val pivotXFloat

pivotY

Added in 1.1.0
val pivotYFloat

right

Added in 1.1.0
val rightInt

rotationX

Added in 1.1.0
val rotationXFloat

rotationY

Added in 1.1.0
val rotationYFloat

rotationZ

Added in 1.1.0
val rotationZFloat

scaleX

Added in 1.1.0
val scaleXFloat

scaleY

Added in 1.1.0
val scaleYFloat

top

Added in 1.1.0
val topInt

translationX

Added in 1.1.0
val translationXFloat

translationY

Added in 1.1.0
val translationYFloat

translationZ

Added in 1.1.0
val translationZFloat

visibility

Added in 1.1.0
val visibilityInt

widget

Added in 1.1.0
val widgetConstraintWidget!