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:
You must put this in the XML code :
android:background="@android:color/transparent"
for your web view like this for example :
and after this you must go to Java code and write this before loadUrl :
yourWebView.setBackgroundColor(Color.TRANSPARENT);