Trigger or Force Redraw or Re-Render from WebView

I understand that WebView PictureListener.onNewPicture() is called whenever a page that is already loaded finishes rendering (or re-rendering if certain events cause the WebKit engine to recalculate the page layout).

I also (think that I) understand that those WebView renderings are controlled inside the WebView, and usually I don't care how they are generated.

However, for some function in my application, I need to call an additional PictureListener.onNewPicture() without reloading the URL (i.e. no reload() or loadUrl() ).

Essentially, I'm looking for a function like repaint () or redraw () or some other mechanism that only generates another PictureListener.onNewPicture() and that it (without the sluggishness and overhead of data PictureListener.onNewPicture() )

Is there any way to achieve this?

+4
source share
1 answer

Try using the requestLayout() function.
not sure if he will do what you want, but worth a try.

0
source

All Articles