從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

相關文章
相關標籤/搜索