mirror of
https://gitee.com/willfree/min-vpn-client_v2.git
synced 2026-06-03 15:36:14 +08:00
finished activity: MainActivity
This commit is contained in:
+11
@@ -144,6 +144,17 @@ fun View.animer(vararg animations: ObjectAnimator) {
|
||||
animatorSet.start()
|
||||
}
|
||||
|
||||
fun View.animer2(vararg animations: ObjectAnimator) {
|
||||
if (animations.isEmpty())
|
||||
return
|
||||
val animatorSet = AnimatorSet()
|
||||
val builder = animatorSet.setDuration(1000)
|
||||
.play(animations[0])
|
||||
animations.filterIndexed { index, _ -> index != 0 }
|
||||
.forEach { builder.with(it) }
|
||||
animatorSet.start()
|
||||
}
|
||||
|
||||
/**
|
||||
* 平移旋转渐变组合动画
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user