animate webview alpha changes

This commit is contained in:
Satindar Dhillon
2023-02-08 14:49:37 -08:00
parent 6e045faf9d
commit 9bd6b9409c

View File

@ -67,13 +67,13 @@ fun WebReader(
settings.allowFileAccess = true
settings.domStorageEnabled = true
visibility = View.INVISIBLE
alpha = 0.0f
webViewClient = object : WebViewClient() {
override fun onPageFinished(view: WebView?, url: String?) {
super.onPageFinished(view, url)
viewModel?.showNavBar()
visibility = View.VISIBLE
view?.animate()?.alpha(1.0f)?.duration = 200
}
}