fix #5006
This commit is contained in:
parent
1c9745651f
commit
431f1d58a0
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue