Skip to content

Instantly share code, notes, and snippets.

@parthdesai1208
Created August 10, 2021 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parthdesai1208/418c91b543f0db12ed5a16ed884ec4eb to your computer and use it in GitHub Desktop.
Save parthdesai1208/418c91b543f0db12ed5a16ed884ec4eb to your computer and use it in GitHub Desktop.
Constraint Layout At RunTime
val constraintSet = ConstraintSet()
constraintSet.clone(root_view_of_constaint_layout)
constraintSet.setMargin(view_which_we_apply_margin_on, top/bottom/start/end, int_dp)
constraintSet.applyTo(root_view_of_constaint_layout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment