use of android.support.constraint.ConstraintLayout in project Robot-Scouter by SUPERCILEX.
the class StopwatchViewHolder method onSuccess.
@Override
public void onSuccess(Void aVoid) {
ConstraintLayout layout = (ConstraintLayout) itemView;
ConstraintSet set = new ConstraintSet();
set.clone(layout);
set.connect(R.id.list, ConstraintSet.TOP, mToggleStopwatch.getBottom() < getName().getBottom() ? R.id.name : R.id.stopwatch, ConstraintSet.BOTTOM, 0);
set.applyTo(layout);
}
Aggregations