The Android application uses the WebView component.

The background is indicated in this way:

mWeb.setBackgroundResource(R.drawable.fon_napominanie); 

Next in the WebView loaded html-pages that are generated in the code. Pages have their own background. It is defined as follows:

 tmp = tmp+ "<div style=\"text-align: center\"><img src=\"data:image/jpeg;base64,"+parser2.getText()+"\" alt width=\""+width+"\" height=\""+height+"\"></div>"; 

When changing pages, the background flashes. How to get rid of this blinking?

  • one
    You can try to hide the web for a while while the page is loading. A background to set the parent element's ku - Vladyslav Matviienko

0