Example #1
0
 /** 显示退出提示 */
 private void showExitTip() {
   mTvDoubleClickTip.setVisibility(View.VISIBLE);
   Animation anim = KJAnimations.getTranslateAnimation(0, 0, 0, titleBarHeight, 300);
   mTvTitle.startAnimation(anim);
   Animation anim2 = KJAnimations.getTranslateAnimation(0, 0, titleBarHeight, 0, 300);
   mTvDoubleClickTip.startAnimation(anim2);
 }
Example #2
0
  /** 取消退出 */
  private void cancleExit() {
    Animation anim = KJAnimations.getTranslateAnimation(0, 0, titleBarHeight, 0, 300);
    mTvTitle.startAnimation(anim);
    Animation anim2 = KJAnimations.getTranslateAnimation(0, 0, titleBarHeight, 300, 0);
    anim2.setAnimationListener(
        new AnimationListener() {
          @Override
          public void onAnimationStart(Animation animation) {}

          @Override
          public void onAnimationRepeat(Animation animation) {}

          @Override
          public void onAnimationEnd(Animation animation) {
            mTvDoubleClickTip.setVisibility(View.GONE);
          }
        });
    mTvDoubleClickTip.startAnimation(anim2);
  }