AudioPlayerActivity.java 文件源码

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

项目:pineapple 作者:
@NeedsPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
public void loadArtworkView(final EMPlaylistManager.PlaylistItem currentItem) {
    picasso.load(currentItem.getArtworkUrl()).transform(new BlurTransformer(currentItem.getArtworkUrl())).into(artworkView, new Callback() {
        @Override
        public void onSuccess() {
            RotateAnimation ra = new RotateAnimation(0, 360, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
            ra.setRepeatMode(Animation.INFINITE);
            ra.setRepeatCount(Animation.INFINITE);
            ra.setDuration(12000l);
            ra.setInterpolator(new LinearInterpolator());
            artworkView.startAnimation(ra);
        }

        @Override
        public void onError() {

        }
    });

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号