Skip to content

Tag: webview

How to implement hiding the toolbar when scrolling WebView?

I have an Activity with WebView and my own AppBarLayout. I want to implement hiding/showing the AppBarLayout with animation when scrolling the WebView, like in the Google Chrome app. I tried different ways. ObservableWebView, but it doesn’t work correctly, it doesn’t always show AppBar, especially if the page is short. ConstraintLayout with animations. Something similar, but still not the same

Webview Splash screen doen’t show once as expected

Am trying to create a webview app displaying a splash screen once after the first lunch. Initially once i open the app the splash screen will show up then after 5 seconds it will load main activity VaultActivity, but after i have added the line of code to check if splash screen ‘SplashScreen’ has been launched before, the app stopped