Webview height not changing after resize font size

前端 未结 4 1861
猫巷女王i
猫巷女王i 2021-01-20 04:16

In my application I use a ScrollView. This ScrollView contain many Webview. I change the webview font size:

webView.getSettings().setTextSize(WebSettings.Tex         


        
4条回答
  •  执笔经年
    2021-01-20 04:23

    private void reloadWebView() {
        // TODO Auto-generated method stub
        postDelayed(new Runnable() {
            @Override
            public void run() {
                clearView();
                reload();               
                myWebView.getSettings().setJavaScriptEnabled(true);
                requestLayout();
            }
        }, 10);
    }
    

提交回复
热议问题