WidgetFrame
class WidgetFrame
Utility class to encapsulate layout of a widget
Summary
Public constructors |
|---|
WidgetFrame(frame: WidgetFrame!) |
WidgetFrame(widget: ConstraintWidget!) |
Public functions |
|
|---|---|
Unit |
addCustomColor(name: String!, color: Int) |
Unit |
addCustomFloat(name: String!, value: Float) |
Float |
centerX() |
Float |
centerY() |
Boolean |
containsCustom(name: String)Return whether this WidgetFrame contains a custom property of the given name. |
CustomVariable! |
getCustomAttribute(name: String!)Get the custom attribute given Nam |
(Mutable)Set<String!>! |
Get the known custom Attributes names |
Int |
getCustomColor(name: String!) |
Float |
getCustomFloat(name: String!) |
String! |
getId() |
TypedBundle! |
get the property bundle associated with MotionAttributes |
Int |
height() |
java-static Unit |
interpolate( |
Boolean |
|
StringBuilder! |
serialize(ret: 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 |
|
WidgetFrame! |
update() |
WidgetFrame! |
update(widget: ConstraintWidget!) |
Unit |
updateAttributes(frame: WidgetFrame!) |
Int |
width() |
Public properties |
|
|---|---|
Float |
|
Int |
|
Float |
|
Int |
|
String! |
|
java-static Float |
|
Float |
|
Float |
|
Int |
|
Float |
|
Float |
|
Float |
|
Float |
|
Float |
|
Int |
|
Float |
|
Float |
|
Float |
|
Int |
|
ConstraintWidget! |
Public constructors
Public functions
containsCustom
fun containsCustom(name: String): Boolean
Return whether this WidgetFrame contains a custom property of the given name.
getCustomAttribute
fun getCustomAttribute(name: String!): CustomVariable!
Get the custom attribute given Nam
| Parameters | |
|---|---|
name: String! |
Name of the custom attribut |
| Returns | |
|---|---|
CustomVariable! |
The customAttribute |
getCustomAttributeNames
fun getCustomAttributeNames(): (Mutable)Set<String!>!
Get the known custom Attributes names
getMotionProperties
fun getMotionProperties(): TypedBundle!
get the property bundle associated with MotionAttributes
| Returns | |
|---|---|
TypedBundle! |
the property bundle associated with MotionAttributes or null |
interpolate
java-static fun interpolate(
parentWidth: Int,
parentHeight: Int,
frame: WidgetFrame!,
start: WidgetFrame!,
end: WidgetFrame!,
transition: Transition!,
progress: Float
): Unit
serialize
fun serialize(ret: StringBuilder!, sendPhoneOrientation: Boolean): StringBuilder!
If true also send the phone orientation
setCustomAttribute
fun setCustomAttribute(name: String!, type: Int, value: Boolean): Unit
setCustomAttribute
fun setCustomAttribute(name: String!, type: Int, value: Float): Unit
setCustomAttribute
fun setCustomAttribute(name: String!, type: Int, value: Int): Unit
setCustomAttribute
fun setCustomAttribute(name: String!, type: Int, value: String!): Unit
setCustomValue
fun setCustomValue(valueAt: CustomAttribute!, mTempValues: FloatArray!): Unit