When the WebView is fully displayed ( fill_parent and width and height) in Honeycomb, HTML, it blinks instantly when loaded in a horizontal orientation.
Given this code, you should see only a yellow background ( WebView color) or blue background (html body color). But when you switch to landscape, you can see that the screen is partially filled with blue, and the back is yellow.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView webView = (WebView) findViewById(R.id.webview); webView.setBackgroundColor(Color.YELLOW); webView.loadData("<html><body style='background-color:#DDF'><p>Hello world!!!</p></body></html>", "text/html", "UTF-8"); }
It is like HTML was rendered before it knew the size of the container and then it would be resized.
This can be played in Android Honeycomb in landscape orientation, both in the emulator and on the device.
Any ideas?
willy source share