android.animation.ObjectAnimator.reverse()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(273)

本文整理了Java中android.animation.ObjectAnimator.reverse()方法的一些代码示例,展示了ObjectAnimator.reverse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectAnimator.reverse()方法的具体详情如下:
包路径:android.animation.ObjectAnimator
类名称:ObjectAnimator
方法名:reverse

ObjectAnimator.reverse介绍

暂无

代码示例

代码示例来源:origin: qs-lll/ExpandingPager

public void close() {
  if (frontAnimator != null) {
    frontAnimator.reverse();
    backAnimator.reverse();
    backAnimator = null;
    frontAnimator = null;
  }
  front.setCardElevation(defaultCardElevation);
}

代码示例来源:origin: tyzlmjj/PagerBottomTabStrip

@Override
public void showBottomLayout() {
  if (hide) {
    hide = false;
    getAnimator().reverse();
  }
}

代码示例来源:origin: PhilJay/MPAndroidChart

protected void resetAnimator(){
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

代码示例来源:origin: aa112901/remusic

updateResults(itemResults, playlists, netplaylists);
notifyItemRangeInserted(5, playlists.size());
anim.reverse();
createdExpanded = true;
int len = playlists.size();
notifyItemRangeInserted(6 + len, netplaylists.size());
anim.reverse();
collectExpanded = true;

代码示例来源:origin: aa112901/remusic

mNeedleAnim.reverse();
mNeedleAnim.end();

代码示例来源:origin: aa112901/remusic

mControl.setImageResource(R.drawable.play_rdi_btn_play);
if (mNeedleAnim != null) {
  mNeedleAnim.reverse();
  mNeedleAnim.end();

代码示例来源:origin: aliab/RTLMaterialSpinner

private void hideFloatingLabel()
{
  if (floatingLabelAnimator != null)
  {
    floatingLabelVisible = false;
    floatingLabelAnimator.reverse();
  }
}

代码示例来源:origin: livroandroid/5ed

private void animar(ObjectAnimator anim) {
    anim.setDuration(2000);
    if (visivel) {
      anim.start();
    } else {
      // Apenas reverte a Animacão
      anim.reverse();
    }
    // Inverte o flag para na próxima vez utilizar a Animacão inversa
    visivel = !visivel;
  }
}

代码示例来源:origin: livroandroid/5ed

private void animar(ObjectAnimator anim) {
    anim.setDuration(1000);
    if (flag) {
      anim.start();
    } else {
      // Apenas reverte a Animacão
      anim.reverse();
    }
    // Inverte o flag para na próxima vez utilizar a Animacão inversa
    flag = !flag;
  }
}

代码示例来源:origin: livroandroid/5ed

private void animar(ObjectAnimator anim) {
    anim.setDuration(2000);
    if (flag) {
      anim.start();
    } else {
      // Apenas reverte a Animacão
      anim.reverse();
    }
    // Inverte o flag para na próxima vez utilizar a Animacão inversa
    flag = !flag;
  }
}

代码示例来源:origin: livroandroid/5ed

private void animar(ObjectAnimator anim) {
    anim.setDuration(2000);
    if (flag) {
      anim.start();
    } else {
      // Apenas reverte a Animacão
      anim.reverse();
    }
    // Inverte o flag para na próxima vez utilizar a Animacão inversa
    flag = !flag;
  }
}

代码示例来源:origin: hencoder/PlusDemo

@Override
  public void afterTextChanged(Editable s) {
    if (s.length() > 0 && !labelShown) {
      labelShown = true;
      getAnimator().start();
    } else if (s.length() == 0 && labelShown) {
      labelShown = false;
      getAnimator().reverse();
    }
  }
});

代码示例来源:origin: WeAreFairphone/FP2-Launcher

@Override
  public void onDragEnd() {
    if (!mDeferOnDragEnd) {
      // Restore the QSB search bar, and animate out the drop target bar
      prepareStartAnimation(mDropTargetBar);
      mDropTargetBarAnim.reverse();
    } else {
      mDeferOnDragEnd = false;
    }
  }
}

代码示例来源:origin: WeAreFairphone/FP2-Launcher

public void finishAnimations() {
  prepareStartAnimation(mDropTargetBar);
  mDropTargetBarAnim.reverse();
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

protected void resetAnimator(){
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

代码示例来源:origin: hencoder/PlusDemo

@Override
public boolean onDoubleTap(MotionEvent e) {
  big = !big;
  if (big) {
    offsetX = getWidth() / 2 - e.getX();
    offsetY = getHeight() / 2 - e.getY();
    getScalingAnimator().start();
  } else {
    getScalingAnimator().reverse();
  }
  return false;
}

代码示例来源:origin: StannyBing/ZXUtils

protected void resetAnimator(){
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

protected void resetAnimator(){
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

protected void resetAnimator() {
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

代码示例来源:origin: WenWangAndroid/ChartManager

protected void resetAnimator(){
  animator.removeAllListeners();
  animator.removeAllUpdateListeners();
  animator.reverse();
  animator.addUpdateListener(this);
  animator.addListener(this);
}

相关文章