Answer the question
In order to leave comments, you need to log in
Wrong display in webView in portrait orientation wtf?
I can’t understand what the problem is
when I load a page in a webView in tablet orientation, it is displayed in the same way as in a regular browser, i.e. fine.
But as soon as you rotate the tablet or initially load the page in portrait orientation, the page will display crookedly. I tried changing the scale (to no avail), and the tambourines did not help me.
in the manifest android:configChanges="keyboardHidden|orientation|screenSize"> added, but without it the same ...
As far as I understand the page does not fit horizontally relative to the width, as it does in tablet orientation.
What to do gentlemen, this is no good, help me out. I tried to do this on different projects and full screen and not full ...
I am attaching screenshots of the browser for comparison (such as the standard as it should be). and screenshots from my application.
Answer the question
In order to leave comments, you need to log in
I advise you to delve into the settings (WebView.Settings) of the WebView, in particular, pay attention to the WebSettings#setLoadWithOverviewMode method .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question