Setting webview background image to a resource graphic in Android
|August 11, 2009||Posted by forumadmin under TechQns||
I’m trying to set the background of a webview to a drawable image resource in Android.
From the sdk it seems something like this would work but it doesn’t.
WebView web = (WebView) findViewById(R.id.webView); web.setBackgroundResource(R.drawable.backgroundmain); web.loadData(profile, "text/html", "UTF-8");
|Asked By – JamieBennett||Read Answers|