This library using for custom function of set up WebView in Android App
We can install this library by using gradle
Step 1
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2
dependencies {
compile 'com.github.BondolTuon:WebViewUtil:1.0.1'
}
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
wvGoogle.onSetUpWebView()
wvGoogle.loadUrl("https://stackoverflow.com")
}
}
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="utils.webview.webviewutils.MainActivity">
<WebView
android:id="@+id/wvGoogle"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.constraint.ConstraintLayout>
Support Min Sdk version >= 14
- Bondol Tuon - Bondol Tuon
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details