开发者

how to show the web view as OverviewMode(completely zoomed out) in android? how?

开发者 https://www.devze.com 2022-12-24 07:01 出处:网络
i want to load my web view as a overview mode(completely zoomed out). that is the webpa开发者_如何学JAVAge zoomed out completely at the initial state.

i want to load my web view as a overview mode(completely zoomed out). that is the webpa开发者_如何学JAVAge zoomed out completely at the initial state.

i coded like this:

webview_obj.getSettings().setLoadWithOverviewMode(true);

its not working. what is the mistake and how to rectify it?


I was just trying to figure that out myself. It seems that setting setUseWideViewPort in addition to setLoadWithOverviewMode fixes it.

webview_obj.getSettings().setUseWideViewPort(true);

This other question deals with the same thing. How to set the initial zoom/width for a webview

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号