Slide 60
Slide 60 text
ConstraintLayout container = findViewById(R.id.container);
ConstraintSet idleSet = new ConstraintSet();
ConstraintSet triggeredSet = new ConstraintSet();
idleSet.clone(container);
triggeredSet.clone(container);
triggeredSet.setVisibility(R.id.title, View.GONE);
triggeredSet.setVisibility(R.id.instructions, View.GONE);
triggeredSet.setVisibility(R.id.helpButton, View.GONE);
triggeredSet.setVisibility(R.id.okButton, View.VISIBLE);
triggeredSet.connect(R.id.whiteBackground, ConstraintSet.TOP,
R.id.guideline, ConstraintSet.TOP);
Take advantage of
ConstraintSet