Skip to content

Instantly share code, notes, and snippets.

@RamiJ3mli
Created August 19, 2018 19:06
Show Gist options
  • Save RamiJ3mli/5072dd5afedf997565ea9c082f8783c2 to your computer and use it in GitHub Desktop.
Save RamiJ3mli/5072dd5afedf997565ea9c082f8783c2 to your computer and use it in GitHub Desktop.
ConstraintSet's list of methods related to guidelines
ConstraintSet method Explanation
create(int guidelineID, int orientation) Creates a guideline within the layout.
setGuidelineBegin(int guidelineID, int margin) Sets a guideline's distance from parent's left edge (vertical guideline) or top edge (horizontal guideline).
setGuidelineEnd(int guidelineID, int margin) Sets a guideline's distance from parent's right edge (vertical guideline) or bottom edge (horizontal guideline).
setGuidelinePercent(int guidelineID, float ratio) Sets a guideline's position in percentage relative to parent view group.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment