LightBox.java 文件源码

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

项目:react-native-navigation 作者:
private void animateShow() {
    ObjectAnimator yTranslation = ObjectAnimator.ofFloat(content, View.TRANSLATION_Y, 80, 0).setDuration(400);
    yTranslation.setInterpolator(new FastOutSlowInInterpolator());
    yTranslation.addListener(new AnimatorListenerAdapter() {
        @Override
        public void onAnimationStart(Animator animation) {
            content.setAlpha(1);
        }
    });

    ObjectAnimator lightBoxAlpha = ObjectAnimator.ofFloat(lightBox, View.ALPHA, 0, 1).setDuration(70);

    AnimatorSet animatorSet = new AnimatorSet();
    animatorSet.playTogether(lightBoxAlpha, yTranslation);
    animatorSet.start();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号