Answer the question
In order to leave comments, you need to log in
Webview - how to set default zoom?
There is a webview, the task of which is to display my site. If you do not specify any parameters, then my site is loaded in webview "huge" . You have to zoom out manually. I need to make it so that when I open my application, "webview" displays my site in full (immediately in full screen). I tried different methods, and they all work, but I ran into a problem... For example, the simplest one: I set the parameter "
Then I compile and install the application. I open it and see again a huge scale... I close / open the application several times and times 4 th I see the scale at 80%, which is what I want.After that, the application always opens with this scale.Until I remove it. web.setInitialScale(80);
Answer the question
In order to leave comments, you need to log in
If you create a webview in onCreate, then it is possible to change the scale in the onResume or onStart method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question