Issue
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 can something be done through the Android code to fix this?
Solution
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.
Answered By - Torid
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.