WebView Loading the HTML5 problem

Source: Internet
Author: User



WebSettings ws = MViewHolder.contentWbv.getSettings (); /** * Setallowfileaccess Enables or disables WebView access to file data setblocknetworkimage whether the network image is displayed * Setbuiltinzoomcontrols setting supports shrinking Put Setcachemode set Buffered mode * setdefaultfontsize set default font size SETDEFAULTTEXTENCODINGNAME set the default encoding to use when decoding * SETFIXEDF Ontfamily set the fixed used font setjavasciptenabled settings support JavaScript * Setlayoutalgorithm set layout mode setlighttouchenabled settings with mouse activation is Option * Setsupportzoom setting supports ZOOM * */Ws.setbuiltinzoomcontrols (TRUE);//Hide Zoom button Ws.setlayoutalgo Rithm (WebSettings.LayoutAlgorithm.NARROW_COLUMNS);//typesetting adapts to the screen Ws.setusewideviewport (true);//Can be scaled arbitrarily Ws.setloa Dwithoverviewmode (TRUE);//Setusewideviewport method set WebView the recommended window. The Setloadwithoverviewmode method is to set the mode of WebView loaded pages. Ws.setsavepassword (TRUE); Ws.setsaveformdata (TRUE);//Save form Data ws.setjavascriptenabled (TRUE); Ws.setgeolocationenabled (TRUE);//Enable geo-location ws.setdomstorageenabled (true); Mviewholder.cOntentwbv.loadurl (CONTENXT);

  

WebView Loading the HTML5 problem

Related Article

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.