how set text color of webview in android

后端 未结 4 791
情歌与酒
情歌与酒 2021-01-13 06:57

i am trying to change text color of webview with this code

String message =\"\"+\"\"+
\"text in white\"+ \"
\"
4条回答
  •  -上瘾入骨i
    2021-01-13 07:38

    htmlDetail = dbValues.getContent(3);
            tvDescription3.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
    
            String finalHtml = ""
                      + ""
                      + ""                          
                      + htmlDetail
                      + "";
    
        tvDescription3.loadData(finalHtml, "text/html; charset=UTF-8", null);
    

提交回复
热议问题