コード例 #1
0
 public void readyToGoAnimation() {
   // Sync progress bar slides out ...
   TranslateTransition leave = new TranslateTransition(Duration.millis(600), syncBox);
   leave.setByY(80.0);
   // Buttons slide in and clickable address appears simultaneously.
   TranslateTransition arrive = new TranslateTransition(Duration.millis(600), controlsBox);
   arrive.setToY(0.0);
   FadeTransition reveal = new FadeTransition(Duration.millis(500), addressControl);
   reveal.setToValue(1.0);
   ParallelTransition group = new ParallelTransition(arrive, reveal);
   // Slide out happens then slide in/fade happens.
   SequentialTransition both = new SequentialTransition(leave, group);
   both.setCycleCount(1);
   both.setInterpolator(Interpolator.EASE_BOTH);
   both.play();
 }