This commit is contained in:
Chumva 2018-05-11 13:23:49 +03:00
parent 1c9745651f
commit 431f1d58a0

View file

@ -1113,7 +1113,10 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
float initialToolbarTransY = show ? -toolbar.getHeight() : 0; float initialToolbarTransY = show ? -toolbar.getHeight() : 0;
float finalToolbarTransY = show ? 0 : -toolbar.getHeight(); float finalToolbarTransY = show ? 0 : -toolbar.getHeight();
animators.add(ObjectAnimator.ofFloat(toolbar, View.TRANSLATION_Y, initialToolbarTransY, finalToolbarTransY)); animators.add(ObjectAnimator.ofFloat(toolbar, View.TRANSLATION_Y, initialToolbarTransY, finalToolbarTransY));
set.setDuration(300).playTogether(animators); for (Animator animator : animators) {
animator.setDuration(300);
}
set.playTogether(animators);
set.addListener(new AnimatorListenerAdapter() { set.addListener(new AnimatorListenerAdapter() {
@Override @Override
public void onAnimationStart(Animator animation) { public void onAnimationStart(Animator animation) {