I've written an app mostly in JS (Mootools) and HTML which is loaded into webview
in my app.
It's just one html file which show or hide parts (elements) of the page by adding or removing a nodisplay
class:
.nodisplay {display:none}
function showPage1()
{
$$('.pages').addClass('nodisplay');
$('page1').removeClass('nodisplay');
}
In android 4 (xperia arc and galaxy note 2) I see a strange late rendering, but I don't know how older versions behave. when I hide an element and show another one, it appears correct at first but during scrolling some parts of the old elements appears for milliseconds and disappears immediately. It's like the render of non visible area is postponed to drawing moment.
And also sometime it just do odd blinks during hiding and showing.
In chrome on PC it don't have any problem. Even in the AVD it works very sharp without any blinks.
I don't know if it's a problem of android and if there is any way to overcome it?!
I tried android:hardwareAccelerated="false"|"true"
, no effect.
and also ws.enableSmoothTransition()
which doesn't solve the problem neither.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…