从webview中加载assets中的html文件

 private void readHtmlFormAssets(){html

        WebSettings webSettings = tipsWebView.getSettings();android

        

        webSettings.setLoadWithOverviewMode(true);web

        webSettings.setUseWideViewPort(true);ide

        

        tipsWebView.setBackgroundColor(Color.TRANSPARENT);  spa

        tipsWebView.loadUrl("file:///android_asset/html/about.html");orm

    }htm

相关文章
相关标签/搜索