コード例 #1
0
  private void showDisplayMode() {

    viewContactDisplay.bind(contact);
    sceneDisplay = new Scene(frameLayout, viewContactDisplay);

    TransitionManager.go(sceneDisplay, getBoundsTransition());
  }
コード例 #2
0
  private void hidePlatforms() {
    TransitionManager.beginDelayedTransition(this);

    mPlatforms.setVisibility(GONE);
    refreshSelectedPlatform();
    mIndicator.setRotation(0);
  }
コード例 #3
0
  /**
   * *************************************************** ---------------- * Scenes *
   * --------------------
   *
   * <p>**************************************************
   */
  private void showEditMode() {

    viewContactEdit.bind(contact);
    sceneEdit = new Scene(frameLayout, viewContactEdit);

    TransitionManager.go(sceneEdit, getBoundsTransition());
  }
コード例 #4
0
  private void showPlatforms() {
    TransitionSet transitionSet = new TransitionSet();
    transitionSet
        .addTransition(new Fade(Fade.OUT).addTarget(mSelectedPlatform).setDuration(150))
        .addTransition(new Slide(Gravity.LEFT).addTarget(mPlatforms).setDuration(400))
        .addTransition(new Rotate().addTarget(mIndicator).setDuration(500));
    TransitionManager.beginDelayedTransition(this, transitionSet);

    mIndicator.setRotation(180);
    mPlatforms.setVisibility(VISIBLE);
    mSelectedPlatform.setVisibility(GONE);
  }