V
V
vari0us2015-03-06 14:20:02
Java
vari0us, 2015-03-06 14:20:02

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.
27efab3aa5b94f55926ffdbf1e2905b3.pngdfc034efcaeb4e89b196f13b481c51bc.pnge4f2bc1129c847f3ad23cfef8717a175.png0a5ff76c565b41f9b7697ce670aa8bde.pngc78202a333c04949ab493b3aa668ff24.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Lebedev, 2015-03-06
@kamiLLxiii

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 question

Ask a Question

731 491 924 answers to any question