简体   繁体   English

Android-使用早于Eclair(2.1)版本的OS在WebView中显示页面

[英]Android - fit page in WebView using pre-Eclair (2.1) version of OS

I'm trying to load page into WebView control with best possible fit and ability to retain it when switching from portrait to landscape. 我试图将页面加载到WebView控件中,并使其具有最佳的WebView ,并能够在从纵向切换为横向时保留页面。

This answer provides the acceptable solution however it only work in OS v2.1 and up. 该答案提供了可接受的解决方案,但仅在OS v2.1及更高版本中有效。 What would be equivalent to the WebSettings#setLoadWithOverviewMode method in older OS releases since it's only available from 2.1+? 因为仅从2.1+起可用,这等效于旧OS版本中的WebSettings#setLoadWithOverviewMode方法?

您是否尝试过按此处所述设置宽视口或将视口标签设置为设备宽度?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM