开发者

Android: Limiting Zoom Out in Webview

I have to display an area map in my application. This map is pr开发者_StackOverflow社区ovided as a large jpg file (>1000px * 1000 px). I display it in a webview and I also use the build in zoom controls and the zoompicker, which works pretty well. Now I want to limit the zoom, so that the image can't be smaller than the listview height. Because when I zoom out, and the image gets smaller, a white area is display underneath the webview and this is whatI want to avoid.

Regards, Hof


Insert this meta tag in the head element:

<meta name='viewport' content='target-densitydpi=device-dpi,initial-scale=1,minimum-scale=1,user-scalable=yes'/>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜