WebView Support for page scaling

Source: Internet
Author: User

1, WebView support page scaling, ordinary through the following settings can meet the 80% request//Zoom release off Webview.getsettings (). Setsupportzoom (True); Set this property to support double-click Scaling only Touch scaling is not supported (in android4.0, other platforms have not tried)//settings can be scaled webview.getsettings (). Setbuiltinzoomcontrols (True); If this property is set, So Webview.getsettings (). Setsupportzoom (True), also tacitly set to true2, infinite scaling unlimited scale, on demand using the large view form, as follows://Infinite zoom webview.getsettings (). Setusewideviewport (true); Set this property to scale arbitrarily.    Note: 1, the initial scaling value can be set as follows: Webview.setinitialscale (Initalvalue); 2, after zooming, to make the content fit the screen, does not exceed the screen appearance, completes the line break. This effect should be controlled by HTML rather than WebView. For example

Test

For example:  webview.seurl ("http://www.metabase.cn/"); Webview.seurl ("http://www.jinanwuliangye.com/"); Webview.seurl ("http://www.tongxinglong.com/"); Webview.seurl ("http://www.qclchina.com/"); Webview.seurl ("http:// www.vipfuxin.com/"); Webview.seurl (" http://www.minnan888.net/"); Webview.seurl (" http://www.lcsyt.com/"); Webview.seurl ("http://lf.yunnanw.cn/"); Webview.seurl ("http://www.ceocbs.com/"); Webview.seurl ("http:// www.yzbljp.com/"); Webview.seurl (" http://www.hyyfscl.com/"); Webview.seurl (" http://www.shoudashou.com/"); Webview.seurl ("http://www.shuoma.com.cn/"); The
completes the Wrap line.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.