[6.3.0]
[动画、]
This commit is contained in:
@@ -116,7 +116,7 @@ open class MusicCheckView @JvmOverloads constructor(
|
||||
animator = ObjectAnimator.ofFloat(aciv_playing, "rotation", 0f, 360f)
|
||||
aciv_playing.pivotX = (aciv_playing.width / 2).toFloat()
|
||||
aciv_playing.pivotY = (aciv_playing.height / 2).toFloat()
|
||||
animator?.duration = 4000
|
||||
animator?.duration = 2000
|
||||
animator?.repeatCount = -1
|
||||
animator?.repeatMode = ValueAnimator.RESTART
|
||||
animator?.interpolator = LinearInterpolator()
|
||||
|
||||
@@ -126,14 +126,14 @@ class MusicPlayingView : ConstraintLayout, MusicPlayingViewModel.IMusicPlayingVi
|
||||
sb_musuc_progess.progress=0.toInt()
|
||||
}
|
||||
|
||||
// Glide.with(context)
|
||||
// .load(musicData.coverHeadImageUrl)
|
||||
// .apply(RequestOptions().placeholder(R.drawable.charter_p_music_bg_relax_head))
|
||||
// .into(iv_music_cover)
|
||||
// Glide.with(context)
|
||||
// .load(musicData.coverBottomImageUrl)
|
||||
// .apply(RequestOptions().placeholder(R.drawable.charter_p_music_bg_relax_bottom))
|
||||
// .into(iv_music_cover_bg)
|
||||
Glide.with(context)
|
||||
.load(musicData.coverHeadImageUrl)
|
||||
.apply(RequestOptions().placeholder(R.drawable.charter_p_music_bg_relax_head))
|
||||
.into(iv_music_cover)
|
||||
Glide.with(context)
|
||||
.load(musicData.coverBottomImageUrl)
|
||||
.apply(RequestOptions().placeholder(R.drawable.charter_p_music_bg_relax_bottom))
|
||||
.into(iv_music_cover_bg)
|
||||
}
|
||||
|
||||
private fun startAnimal(){
|
||||
@@ -144,7 +144,7 @@ class MusicPlayingView : ConstraintLayout, MusicPlayingViewModel.IMusicPlayingVi
|
||||
animator = ObjectAnimator.ofFloat(iv_music_cover, "rotation", 0f, 360f)
|
||||
iv_music_cover.pivotX = (iv_music_cover.width / 2).toFloat()
|
||||
iv_music_cover.pivotY = (iv_music_cover.height / 2).toFloat()
|
||||
animator?.duration = 4000
|
||||
animator?.duration = 2000
|
||||
animator?.repeatCount = -1
|
||||
animator?.repeatMode = ValueAnimator.RESTART
|
||||
animator?.interpolator = LinearInterpolator()
|
||||
|
||||
Reference in New Issue
Block a user