关于LCD背光调节渐变过程引起背光闪烁问题
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
关于LCD背光调节渐变过程问题
[SOLUTION]
如果背光渐变过程会引起背光闪烁,可以采取以下修改优化:
.如不需要渐变的过程,也可以直接把动画去掉,看效果如何
如下修改:
RampAnimator.java
public boolean animateTo(int target, int rate) {
Slog.d(TAG,"animateTo,target="+target+",rate="+rate);
// Immediately jump to the target the first time.
/*if (mFirstTime) {
mFirstTime = false;
mProperty.setValue(mObject, target);
mCurrentValue = target;
return true;
}*/
//change code below==============
if (mFirstTime) {
//mFirstTime = false;
mProperty.setValue(mObject, target);
mCurrentValue = target;
return true;
}
//change code below above============
关于LCD背光调节渐变过程问题
[SOLUTION]
如果背光渐变过程会引起背光闪烁,可以采取以下修改优化:
.如不需要渐变的过程,也可以直接把动画去掉,看效果如何
如下修改:
RampAnimator.java
public boolean animateTo(int target, int rate) {
Slog.d(TAG,"animateTo,target="+target+",rate="+rate);
// Immediately jump to the target the first time.
/*if (mFirstTime) {
mFirstTime = false;
mProperty.setValue(mObject, target);
mCurrentValue = target;
return true;
}*/
//change code below==============
if (mFirstTime) {
//mFirstTime = false;
mProperty.setValue(mObject, target);
mCurrentValue = target;
return true;
}
//change code below above============