I draw several canvas diagrams on an Android web browser and use javascript to change the diagram only by hiding and showing it, as well as changing the name of the reset to its innerHTML.
The title is a regular html tag "<div id='title'></div>" ,
The problem is that the page does not display well when I switch charts, for example. when I chose to display the next chart and change the title of innerHTML, the title seems to be βrememberedβ by its previous innerHTML, and it looks like one text overlaps another.
If I manually change the orientation of the phone, it seems like the webview is redrawing its contents (not updating), then everything will be fine.
Any idea on this? or can I simulate an orientation change event to make my webview redraw its page to get around it?
android html5 charts canvas draw
virsir
source share