I need to get the width and height of the WebView and pass them in the query string of the URL loaded into the WebView. I found a way to do this in onResume (). Since the width and height are not calculated at this point, I send Runnable to the WebView for the queue for after loading the user interface.
Here's my problem: when the orientation changes, I process it in onConfigurationChanged. When I try to publish Runnable in onConfigurationChanged for WebView, the width and height of the WebView become the old width and height of the orientation. At what point can I intercept the new width and height after changing the orientation?
source share