开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜