void |
|
boolean |
Returns true if this widget should be used in a barrier
|
void |
Connect a given anchor of this widget to another anchor of a target widget
|
void |
Connect the given anchors together (the from anchor should be owned by this widget)
|
void |
Connect a given anchor of this widget to another anchor of a target widget
|
void |
Set a circular constraint
|
void |
Create all the system variables for this widget
|
void |
|
void |
|
ConstraintAnchor |
Given a type of anchor, returns the corresponding anchor.
|
ArrayList<ConstraintAnchor> |
Return the array of anchors of this widget
|
int |
Return the baseline distance relative to the top of the widget
|
float |
Return the percentage bias that is used when two opposite connections exist of the same strength in a particular orientation.
|
int |
Return the bottom position of the widget
|
Object |
Return the companion widget.
|
int |
Accessor for the skip value
|
String |
Returns the name of this widget (used for debug purposes)
|
ConstraintWidget.DimensionBehaviour |
Get the widget's DimensionBehaviour in an specific orientation.
|
float |
Return the current ratio of this widget
|
int |
Return the current side on which ratio will be applied
|
boolean |
|
int |
Return the height of the widget
|
float |
Return the horizontal percentage bias that is used when two opposite connections exist of the same strength.
|
ConstraintWidget |
if in a horizontal chain return the left most widget in the chain.
|
int |
get the chain starting from this widget to be packed.
|
ConstraintWidget.DimensionBehaviour |
Accessor for the horizontal dimension behaviour
|
int |
Returns all the horizontal margin of the widget.
|
int |
|
int |
|
int |
Return the left position of the widget (similar to getX)
|
int |
Get a dimension of the widget in a particular orientation.
|
int |
|
int |
|
int |
Return the minimum height of the widget
|
int |
Return the minimum width of the widget
|
ConstraintWidget |
Return the next chain member if one exists
|
int |
|
int |
|
ConstraintWidget |
Returns the parent of this widget if there is one
|
ConstraintWidget |
Return the previous chain member if one exists
|
int |
Return the right position of the widget
|
int |
Return the x position of the widget, relative to the root (without animation)
|
int |
Return the y position of the widget, relative to the root (without animation)
|
WidgetRun |
|
void |
|
int |
Return the top position of the widget (similar to getY)
|
String |
Returns the type string if set
|
float |
Return the vertical percentage bias that is used when two opposite connections exist of the same strength.
|
ConstraintWidget |
if in a vertical chain return the top most widget in the chain.
|
int |
Set the chain starting from this widget to be packed.
|
ConstraintWidget.DimensionBehaviour |
Accessor for the vertical dimension behaviour
|
int |
Returns all the vertical margin of the widget
|
int |
Returns the current visibility value for this widget
|
int |
Return the width of the widget
|
int |
|
int |
Return the x position of the widget, relative to its container
|
int |
Return the y position of the widget, relative to its container
|
boolean |
Return true if this widget has a baseline
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
Immediate connection to an anchor without any checks.
|
boolean |
Returns if this widget is animated.
|
boolean |
Returns true if height is set to wrap_content
|
boolean |
|
boolean |
|
boolean |
Test if you are in a Horizontal chain
|
boolean |
|
boolean |
Test if you are in a vertical chain
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
Returns true if the widget is the root widget
|
boolean |
|
boolean |
|
boolean |
|
boolean |
Returns true if width is set to wrap_content
|
void |
|
void |
|
boolean |
|
boolean |
|
void |
|
void |
Reset all the constraints set on this widget
|
void |
Reset the given anchor
|
void |
Reset all connections
|
void |
|
void |
Reset the solver variables of the anchors
|
void |
|
StringBuilder |
Serialize the anchors for JSON5 output
|
void |
Set if this widget is animated.
|
void |
Set the baseline distance relative to the top of the widget
|
void |
Set the companion widget.
|
void |
Set the skip value for this widget.
|
void |
Set the debug name of this widget
|
void |
Utility debug function.
|
void |
Set both width and height of the widget
|
void |
Set the ratio of the widget
|
void |
Set the ratio of the widget The ratio will be applied if at least one of the dimension (width or height) is set to a behaviour of DimensionBehaviour.MATCH_CONSTRAINT -- the dimension's value will be set to the other dimension * ratio.
|
void |
|
void |
setFinalFrame( int left, int top, int right, int bottom, int baseline, int orientation )
|
void |
|
void |
|
void |
|
void |
|
void |
setFrame(int start, int end, int orientation)
Set the position+dimension of the widget based on starting/ending positions on one dimension.
|
void |
setFrame(int left, int top, int right, int bottom)
Set the position+dimension of the widget given left/top/right/bottom
|
void |
Set the margin to be used when connected to a widget with a visibility of GONE
|
void |
|
void |
Set the height of the widget
|
void |
Keep track of wrap_content for height
|
void |
Set the horizontal bias percent to apply when we have two opposite constraints of equal strength
|
void |
Set the chain starting from this widget to be packed.
|
void |
Set the positions for the horizontal dimension only
|
void |
Set the widget's behaviour for the horizontal dimension
|
void |
Set the horizontal style when MATCH_CONSTRAINT is set
|
void |
Set the horizontal weight (only used in chains)
|
void |
|
void |
|
void |
|
void |
|
void |
Set the dimension of a widget in a particular orientation.
|
void |
|
void |
|
void |
|
void |
Set the minimum height of the widget
|
void |
Set the minimum width of the widget
|
void |
Set the offset of this widget relative to the root widget
|
void |
Set both the origin in (x, y) of the widget, relative to its container
|
void |
Set the parent of this widget
|
void |
Set the type of the widget (as a String)
|
void |
Set the vertical bias percent to apply when we have two opposite constraints of equal strength
|
void |
Set the chain starting from this widget to be packed.
|
void |
Set the positions for the vertical dimension only
|
void |
Set the widget's behaviour for the vertical dimension
|
void |
Set the vertical style when MATCH_CONSTRAINT is set
|
void |
Set the vertical weight (only used in chains)
|
void |
Set the visibility for this widget
|
void |
Set the width of the widget
|
void |
Keep track of wrap_content for width
|
void |
|
void |
Set the x position of the widget, relative to its container
|
void |
Set the y position of the widget, relative to its container
|
void |
setupDimensionRatio( boolean hParentWrapContent, boolean vParentWrapContent, boolean horizontalDimensionFixed, boolean verticalDimensionFixed )
Resolves the dimension ratio parameters (mResolvedDimensionRatioSide &mDimensionRatio)
|
String |
Returns a string representation of the ConstraintWidget
|
void |
|
void |
Update the widget from the values generated by the solver
|