--程序启动时会执行的事件
--禁止截屏
this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE )
弹出消息("左滑侧边栏👈")
--程序启动时会执行的事件
--顶栏变色
view=toolbarParent
color1 = 0xffFF8080;
color2 = 0xff8080FF;
color3 = 0xff80ffff;
color4 = 0xff80ff80;
import "android.animation.ObjectAnimator"
import "android.animation.ArgbEvaluator"
import "android.animation.ValueAnimator"
import "android.graphics.Color"
colorAnim = ObjectAnimator.ofInt(view,"backgroundColor",{color1, color2, color3,color4})
colorAnim.setDuration(3000)
colorAnim.setEvaluator(ArgbEvaluator())
colorAnim.setRepeatCount(ValueAnimator.INFINITE)
colorAnim.setRepeatMode(ValueAnimator.REVERSE)
colorAnim.start()


Back to home | File page

Subscribe | Register | Login | N