PlaylistDetailActivity.java 文件源码

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

项目:RetroMusicPlayer 作者:
public void showHeartAnimation() {
    shuffleButton.clearAnimation();

    shuffleButton.setScaleX(0.9f);
    shuffleButton.setScaleY(0.9f);
    shuffleButton.setVisibility(View.VISIBLE);
    shuffleButton.setPivotX(shuffleButton.getWidth() / 2);
    shuffleButton.setPivotY(shuffleButton.getHeight() / 2);

    shuffleButton.animate()
            .setDuration(200)
            .setInterpolator(new DecelerateInterpolator())
            .scaleX(1.1f)
            .scaleY(1.1f)
            .withEndAction(() -> shuffleButton.animate()
                    .setDuration(200)
                    .setInterpolator(new AccelerateInterpolator())
                    .scaleX(1f)
                    .scaleY(1f)
                    .alpha(1f)
                    .start())
            .start();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号