CurrentSessionTimerFragment.java 文件源码

java
阅读 103 收藏 0 点赞 0 评论 0

项目:plusTimer 作者:
void playLastBarExitAnimation() {
    if (mLastBarAnimationSet != null) {
        mLastBarAnimationSet.cancel();
    }

    mLastDeleteButton.setEnabled(false);
    mLastDnfButton.setEnabled(false);
    mLastPlusTwoButton.setEnabled(false);
    ObjectAnimator exit = ObjectAnimator.ofFloat(mLastBarLinearLayout, View.TRANSLATION_Y, 0f);
    exit.setDuration(125);
    exit.setInterpolator(new FastOutLinearInInterpolator());
    mLastBarAnimationSet = new AnimatorSet();
    mLastBarAnimationSet.addListener(new AnimatorListenerAdapter() {
        @Override
        public void onAnimationEnd(Animator animation) {
            super.onAnimationEnd(animation);
            if (mLastBarLinearLayout.getTranslationY() == 0f) {
                mLastBarLinearLayout.setVisibility(View.GONE);
            }
        }
    });
    mLastBarAnimationSet.play(exit);
    mLastBarAnimationSet.start();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号