Say I have a LinearLayout that contains multiple WebViews and I need to take a screenshot of it.
The only idea that comes to mind is taking a screen of each individual webview onPageFinished and then combining them. Yet it is a hell lot of work and the result won’t be too accurate.
Maybe someone know of some top-secret 🙂 method that can be used in this case?
Thanks!
You could draw the LinearLayout to a Bitmap. Since it is the parent of the WebView´s you can use its draw method to get a screenShot.
eks.
Note, that you need to wait until the WebView´s are finished loading in order for this to work correctly…