Last active
August 29, 2015 14:04
-
-
Save j-onathan/62c6470ac93dfbdd5c29 to your computer and use it in GitHub Desktop.
Android Code Example: Displaying Web Pages (from https://www.codota.com/android/scenarios/52fcbd77da0a1ca94ad37914/displaying-web-pages?tag=dragonfly)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setUpWebView() | |
{ | |
mWebView = new WebView(getContext()); | |
mWebView.setVerticalScrollBarEnabled(false); | |
mWebView.setHorizontalScrollBarEnabled(false); | |
mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); | |
mWebView.getSettings().setJavaScriptEnabled(true); | |
mWebView.loadUrl(mUrl); | |
mWebView.setLayoutParams(FILL); | |
mContent.addView(mWebView); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment