Skip to content

Instantly share code, notes, and snippets.

@ericjames
Created October 22, 2018 18:32
Show Gist options
  • Save ericjames/8c7d9471febc786b78643879234c7c65 to your computer and use it in GitHub Desktop.
Save ericjames/8c7d9471febc786b78643879234c7c65 to your computer and use it in GitHub Desktop.
Android Kotlin: Set a WebView
val webView = findViewById<WebView>(R.id.tosWebView)
webView.visibility = 1
webView.webViewClient = WebViewClient()
webView.settings.javaScriptEnabled = true
webView.settings.domStorageEnabled = true
webView.overScrollMode = WebView.OVER_SCROLL_NEVER
webView.loadUrl(R.string.tos_url.toString())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment