Can support rotation?
sorosunrain opened this issue ยท 6 comments
sorosunrain commented
Can support rotation?
florent37 commented
in progress ๐
will be on the futur release
sorosunrain commented
public class RotationAnimExpectation extends CustomAnimExpectation {
private final float rotation;
public RotationAnimExpectation(float rotation) {
this.rotation = rotation;
}
@Override
public Animator getAnimator(View viewToMove) {
final ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(viewToMove, "rotation", viewToMove.getRotation(), rotation);
return objectAnimator;
}
}
florent37 commented
yes you can use it for now
florent37 commented
But I want to add some enhancement, like to calculate the width of a rotated view, to add your view on right for example
florent37 commented
florent37 commented
will be on next release