示例#1
0
  public void animateOut(float duration, float delay) {
    alpha = t = 1;

    NumberProperty p = positionTween.getNumber("t");
    p.setEnd(0f);
    positionTween.setDuration(duration).delay(delay).play();
  }
示例#2
0
  public void fadeOut(float duration, float delay) {
    alpha = t = 1;

    NumberProperty p = alphaTween.getNumber("alpha");
    p.setEnd(0f);
    alphaTween
        .setDuration(duration)
        .delay(delay) // .onEnd(this, "hide")
        .play();
  }
示例#3
0
  public void fadeIn(float duration, float delay) {
    alpha = 0;
    t = 1;

    NumberProperty p = alphaTween.getNumber("alpha");
    p.setEnd(1f);
    alphaTween
        .setDuration(duration)
        .delay(delay) // .onStart(this, "show")
        .play();
  }