florent37/ExpectAnim

Can support rotation?

sorosunrain opened this issue ยท 6 comments

Can support rotation?

in progress ๐Ÿ‘
will be on the futur release

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;
}

}

yes you can use it for now

But I want to add some enhancement, like to calculate the width of a rotated view, to add your view on right for example

like this ๐Ÿ˜„

ezgif com-video-to-gif

will be on next release