package com.github.florent37.expectanim.core.position;
import android.view.View;
import com.github.florent37.expectanim.ViewCalculator;
import java.util.List;
/**
* Created by florentchampigny on 17/02/2017.
*/
public abstract class PositionAnimationViewDependant extends PositionAnimExpectation {
protected View otherView;
public PositionAnimationViewDependant(View otherView) {
this.otherView = otherView;
}
@Override
public List<View> getViewsDependencies() {
final List<View> viewsDependencies = super.getViewsDependencies();
viewsDependencies.add(otherView);
return viewsDependencies;
}
public void setViewCalculator(ViewCalculator viewCalculator) {
this.viewCalculator = viewCalculator;
}
}