Skip to content

Instantly share code, notes, and snippets.

@RamiJ3mli
Last active August 25, 2018 18:35
Show Gist options
  • Save RamiJ3mli/d9ae3ead7d7c2d56ce2628eaab6e620d to your computer and use it in GitHub Desktop.
Save RamiJ3mli/d9ae3ead7d7c2d56ce2628eaab6e620d to your computer and use it in GitHub Desktop.
ConstraintSet c = new ConstraintSet();
c.clone(constraintLayout);
//c.create( R.id.keyline, ConstraintSet.VERTICAL_GUIDELINE);
c.setGuidelineBegin(R.id.keyline, ScreenUtil.convertDptoPx(16));
c.connect(R.id.button, ConstraintSet.START, R.id.keyline, ConstraintSet.END);
c.applyTo(constraintLayout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment