开发者

Webview Rendering Issue - Android

I have a WebView within a FrameLayout. The height and width attributes of both the views have been set to 'fill_parent'. However, when I retrieve content from a site and display it via the WebView, the site occupies only 3/4th of the height of the screen. The width of the view is fine, however. Is there some change that needs to be made on the server side or ca开发者_开发问答n something be done through the Android code to fix this?


WebView displays page views at full zoom (not in "overview mode"). That is, it appears at the default size for the page, instead of zoomed out. (This is also how the page appears if the user disables overview mode.)

You can control how the page appears in a WebView by playing with the "viewport" property in an HTML tag (which must be placed in your document ).

See http://developer.android.com/guide/webapps/targeting.html for the full info.


Check for zoom level for the web view...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜