Reputation: 12047
I have a webview followed by 3 buttons. The text that fills the webview and the text for each button is pulled from an sqlite db then each view is set. When the intent opens the buttons are set but the webview is empty then loads a split second later.
Is there something I can do to change this?
Upvotes: 5
Views: 2472
Reputation: 7569
There are other questions that ask similar questions, this was taken from them:
webview.getSettings().setRenderPriority(RenderPriority.HIGH);
webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
Adding this android:hardwareAccelerated="true"
in the manifest was the only thing that significantly improved the performance for me
Upvotes: 1