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);
}
}
LockView.java 文件源码
java
阅读 45
收藏 0
点赞 0
评论 0
项目:ScreenLocker2
作者:
评论列表
文章目录