Created
August 10, 2021 17:40
-
-
Save parthdesai1208/418c91b543f0db12ed5a16ed884ec4eb to your computer and use it in GitHub Desktop.
Constraint Layout At RunTime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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