Created
October 22, 2018 18:32
-
-
Save ericjames/8c7d9471febc786b78643879234c7c65 to your computer and use it in GitHub Desktop.
Android Kotlin: Set a WebView
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
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