LockView.java 文件源码

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

项目:ScreenLocker2 作者:
public void batteryChargingAnim() {
    if (PhoneStateHelper.isPowerConnected(mContext)) {
        final ObjectAnimator alphaAnimation = ObjectAnimator.ofFloat(mBatteryCharging, View.ALPHA, 0.2f, 1, 1);
        alphaAnimation.setRepeatCount(ValueAnimator.INFINITE);
        alphaAnimation.setRepeatMode(ValueAnimator.REVERSE);
        alphaAnimation.setEvaluator(new FloatEvaluator());
        alphaAnimation.setDuration(1500);
        alphaAnimation.start();
        ViewU.show(mBatteryCharging);
    } else {
        ViewU.hide(mBatteryCharging);
        cancelAnimation(mBatteryCharging);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号