Search in sources :

Example 1 with ConstraintLayout

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);
}
Also used : ConstraintSet(android.support.constraint.ConstraintSet) ConstraintLayout(android.support.constraint.ConstraintLayout)

Aggregations

ConstraintLayout (android.support.constraint.ConstraintLayout)1 ConstraintSet (android.support.constraint.ConstraintSet)1