Skip to content

Instantly share code, notes, and snippets.

@adamatan
Created April 27, 2013 11:51
Show Gist options
  • Select an option

  • Save adamatan/5472828 to your computer and use it in GitHub Desktop.

Select an option

Save adamatan/5472828 to your computer and use it in GitHub Desktop.
Android Code snippets
// Adding a WebView to an existing layout
LinearLayout moviesLayout = (LinearLayout) findViewById(R.id.moviesLayout);
WebView wv = new WebView(this);
String html = "<html><body>You scored <b>192</b> points.</body></html>";
wv.loadData(html, "text/html", "UTF8");
moviesLayout.addView(wv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment