So basically, I created an Android WebView
, in a 720 x 1280
screen. However when I evaluate screen.width
and screen.height
, the response is 360
and 640
.
I understand that this may be partly so that content is displayed on a readable way, but, when I tried to set a static width to the WebView, like 1000px
x 1000px
, the Javascript still evaluates the same.
Is there a way to disable this, so that the content looks same as it would on a desktop screen, and the screen.width
and screen.height
return the real phone resolution or the one I manually set in the XML.
A Crosswalk (based in chromium) solution is also acceptable, even if it includes changing the source code, if WebView
solution is not possible.