Android WebView background color

前端 未结 8 1888
情话喂你
情话喂你 2020-12-29 00:47

I am adding to my layout a WebView to display justified text. I want to set the background of the WebView to be transparent to appear like a textView. Here\'s what I did:

8条回答
  •  暖寄归人
    2020-12-29 01:39

    Try using synopsis.getSettings();

    WebView synopsis;
    synopsis=(WebView)findViewById(R.id.synopsis);
    synopsis.setBackgroundColor(Color.TRANSPARENT);
    

提交回复
热议问题