Fix dashboard visibility after animation
This commit is contained in:
parent
41051aa76d
commit
f588ee7016
1 changed files with 3 additions and 1 deletions
|
@ -913,7 +913,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, IRouteInfo
|
||||||
Animator circleAnimator = ViewAnimationUtils.createCircularReveal(content, centerX, centerY, initialRadius, finalRadius);
|
Animator circleAnimator = ViewAnimationUtils.createCircularReveal(content, centerX, centerY, initialRadius, finalRadius);
|
||||||
animators.add(circleAnimator);
|
animators.add(circleAnimator);
|
||||||
}
|
}
|
||||||
float initialValueScale = show ? 0f : 1f;
|
final float initialValueScale = show ? 0f : 1f;
|
||||||
float finalValueScale = show ? 1f : 0f;
|
float finalValueScale = show ? 1f : 0f;
|
||||||
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_X, initialValueScale, finalValueScale));
|
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_X, initialValueScale, finalValueScale));
|
||||||
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_Y, initialValueScale, finalValueScale));
|
animators.add(ObjectAnimator.ofFloat(content, View.SCALE_Y, initialValueScale, finalValueScale));
|
||||||
|
@ -946,6 +946,8 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, IRouteInfo
|
||||||
content.setTranslationX(0);
|
content.setTranslationX(0);
|
||||||
content.setTranslationY(0);
|
content.setTranslationY(0);
|
||||||
toolbar.setTranslationY(0);
|
toolbar.setTranslationY(0);
|
||||||
|
content.setScaleX(initialValueScale);
|
||||||
|
content.setScaleY(initialValueScale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue