mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Changed object animation
This commit is contained in:
@@ -634,7 +634,7 @@ public class Helper {
|
||||
}
|
||||
|
||||
static ObjectAnimator getFabAnimator(View fab, LifecycleOwner owner) {
|
||||
ObjectAnimator animator = ObjectAnimator.ofFloat(fab, "alpha", 0.5f, 1.0f);
|
||||
ObjectAnimator animator = ObjectAnimator.ofFloat(fab, "alpha", 0.9f, 1.0f);
|
||||
animator.setDuration(750L);
|
||||
animator.setRepeatCount(ValueAnimator.INFINITE);
|
||||
animator.setRepeatMode(ValueAnimator.REVERSE);
|
||||
@@ -643,7 +643,8 @@ public class Helper {
|
||||
public void onAnimationUpdate(ValueAnimator animation) {
|
||||
if (!owner.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
fab.setAlpha((float) animation.getAnimatedValue());
|
||||
fab.setScaleX((float) animation.getAnimatedValue());
|
||||
fab.setScaleY((float) animation.getAnimatedValue());
|
||||
}
|
||||
});
|
||||
return animator;
|
||||
|
||||
Reference in New Issue
Block a user