You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add more Animation APIs and call onAnimationEnd()
Directly calling onAnimationEnd() skips the animation and directly sets the target values
This commit is contained in:
@@ -12,6 +12,8 @@ public class ViewPropertyAnimator {
|
||||
}
|
||||
|
||||
public ViewPropertyAnimator setListener(Animator.AnimatorListener listener) {
|
||||
if (listener != null)
|
||||
listener.onAnimationEnd(null);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -27,5 +29,17 @@ public class ViewPropertyAnimator {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ViewPropertyAnimator rotation(float rotation) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ViewPropertyAnimator translationX(float translationX) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ViewPropertyAnimator translationY(float translationY) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public void start() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user