Reputation: 315
I have a WebView that is supposed to show what my webcam films.
When I go to my webcam from my mobile's browser it works fine, but when I try to do it from my application it looks like this:
https://i.sstatic.net/aGOse.jpg
For some reason it zooms in, and the part of the screen thats "outside" is unreachable, even when trying to drag, scroll or zoom out (as can be seen in the picture, I'm trying to drag the screen to the right).
What I was able to find regarding my problem was this:
Android - webview cuts off
I've tried the solutions there, but to no avail.
Would appreciate some help. Thanks!
Upvotes: 2
Views: 3933
Reputation: 315
Managed to find an answer.
x.getSettings().setLoadWithOverviewMode(true); x.getSettings().setUseWideViewPort(true);
(When x is my WebView)
Fitting webpage contents inside a webview (Android)
Upvotes: 3